8000 Try making WASI Debug recursion limit 400 · python/cpython@877a005 · GitHub
[go: up one dir, main page]

Skip to content

Commit 877a005

Browse files
committed
Try making WASI Debug recursion limit 400
1 parent 8fc905f commit 877a005

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Include/cpython/pystate.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,12 @@ struct _ts {
193193
#ifdef Py_DEBUG
194194
// A debug build is likely built with low optimization level which implies
195195
// higher stack memory usage than a release build: use a lower limit.
196+
#if defined(__wasi__)
197+
  // On WASI it's even worse.
198+
# define Py_C_RECURSION_LIMIT 400
199+
#else
196200
# define Py_C_RECURSION_LIMIT 500
201+
#endif
197202
#elif defined(__s390x__)
198203
# define Py_C_RECURSION_LIMIT 800
199204
#elif defined(_WIN32) && defined(_M_ARM64)

0 commit comments

Comments
 (0)
0