Skip to content

Commit 76ebbe2

Browse files
committed
12mb applicable to j64arm only
1 parent b9114ea commit 76ebbe2

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

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(_WIN32)
535+
#if (defined(__APPLE__)&&(defined(__aarch64__)||defined(_M_ARM64))) || 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

make2/build_jconsole.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,23 +161,23 @@ LDFLAGS=" -ldl $LDTHREAD -m32 $macmin "
161161
#-mmacosx-version-min=10.5
162162
darwin_j64)
163163
CFLAGS="$common $macmin"
164-
LDFLAGS=" -Wl,-stack_size -Wl,0xc00000 -ldl $LDTHREAD $macmin "
164+
LDFLAGS=" -ldl $LDTHREAD $macmin "
165165
;;
166166
darwin_j64avx)
167167
CFLAGS="$common $macmin"
168-
LDFLAGS=" -Wl,-stack_size -Wl,0xc00000 -ldl $LDTHREAD $macmin "
168+
LDFLAGS=" -ldl $LDTHREAD $macmin "
169169
;;
170170
darwin_j64avx2)
171171
CFLAGS="$common $macmin"
172-
LDFLAGS=" -Wl,-stack_size -Wl,0xc00000 -ldl $LDTHREAD $macmin "
172+
LDFLAGS=" -ldl $LDTHREAD $macmin "
173173
;;
174174
darwin_j64avx512)
175175
CFLAGS="$common $macmin"
176-
LDFLAGS=" -Wl,-stack_size -Wl,0xc00000 -ldl $LDTHREAD $macmin "
176+
LDFLAGS=" -ldl $LDTHREAD $macmin "
177177
;;
178178
darwin_j64arm) # darwin arm
179179
CFLAGS="$common $macmin -march=armv8-a+crc "
180-
LDFLAGS=" -Wl,-stack_size -Wl,0xc00000 -ldl $LDTHREAD $macmin "
180+
LDFLAGS=" -Wl,-stack_size,0xc00000 -ldl $LDTHREAD $macmin "
181181
;;
182182
windows_j32)
183183
TARGET=jconsole.exe

0 commit comments

Comments
 (0)