We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a2dcfe commit 62ff43cCopy full SHA for 62ff43c
Include/cpython/pystate.h
@@ -193,7 +193,12 @@ struct _ts {
193
#ifdef Py_DEBUG
194
// A debug build is likely built with low optimization level which implies
195
// higher stack memory usage than a release build: use a lower limit.
196
-# define Py_C_RECURSION_LIMIT 500
+# if defined(__wasi__)
197
+ // Based on wasmtime 16.
198
+# define Py_C_RECURSION_LIMIT 400
199
+# else
200
+# define Py_C_RECURSION_LIMIT 500
201
+# endif
202
#elif defined(__s390x__)
203
# define Py_C_RECURSION_LIMIT 800
204
#elif defined(_WIN32) && defined(_M_ARM64)
0 commit comments