Skip to content

Commit fde381b

Browse files
committed
use OS default stack size on non-windows platforms
1 parent 76ebbe2 commit fde381b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsrc/j.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ struct jtimespec jmtclk(void); //monotonic clock. Intended rel->abs conversions
532532
// NEW WAY
533533
// The named-call stack is used only when there is a locative, EXCEPT that after a call to 18!:4 it is used until the function calling 18!:4 returns.
534534
// Since startup calls 18!:4 without a name, we have to allow for the possibility of deep recursion in the name stack. Normally only a little of the stack is used
535-
#if (defined(__APPLE__)&&(defined(__aarch64__)||defined(_M_ARM64))) || defined(_WIN32)
535+
#if defined(_WIN32)
536536
#define CSTACKSIZE (SY_64?12009472:1015808) // size we allocate in the calling function, aligned to 16k system page size
537537
#else
538538
#define CSTACKSIZE (SY_64?7946240:1015808) // OS default stack size 8MB, aligned to 16k system page size

0 commit comments

Comments
 (0)