Skip to content

Commit c1eb229

Browse files
committed
Reduce webassembly 'stack size' by 10
1 parent 158401a commit c1eb229

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/ceval.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ _Py_EnterRecursiveCallUnchecked(PyThreadState *tstate)
332332
// test_descr crashed on sparc64 with >7000 but let's keep a margin of error.
333333
# define Py_C_STACK_SIZE 1600000
334334
#elif defined(__wasi__)
335-
# define Py_C_STACK_SIZE 1000000
335+
/* Web assembly has two stacks, so this isn't really the stack depth */
336+
# define Py_C_STACK_SIZE 100000
336337
#elif defined(__hppa__) || defined(__powerpc64__)
337338
// test_descr crashed with >8000 but let's keep a margin of error.
338339
# define Py_C_STACK_SIZE 2000000

0 commit comments

Comments
 (0)