Skip to content

Commit

Permalink
Try making WASI Debug recursion limit 400
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Apr 29, 2024
1 parent 8fc905f commit 877a005
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Include/cpython/pystate.h
Expand Up @@ -193,7 +193,12 @@ struct _ts {
#ifdef Py_DEBUG
// A debug build is likely built with low optimization level which implies
// higher stack memory usage than a release build: use a lower limit.
#if defined(__wasi__)
  // On WASI it's even worse.
# define Py_C_RECURSION_LIMIT 400
#else
# define Py_C_RECURSION_LIMIT 500
#endif
#elif defined(__s390x__)
# define Py_C_RECURSION_LIMIT 800
#elif defined(_WIN32) && defined(_M_ARM64)
Expand Down

0 comments on commit 877a005

Please sign in to comment.