mirror of https://github.com/python/cpython
GH-111807: Lower the parser stack depth under WASI debug builds (#112225)
This commit is contained in:
parent
ce1096f974
commit
56e59a49ae
|
@ -0,0 +1 @@
|
|||
Lower the max parser stack depth to 1000 under WASI debug builds.
|
|
@ -8,7 +8,11 @@
|
|||
#endif
|
||||
|
||||
#ifdef __wasi__
|
||||
# define MAXSTACK 4000
|
||||
# ifdef Py_DEBUG
|
||||
# define MAXSTACK 1000
|
||||
# else
|
||||
# define MAXSTACK 4000
|
||||
# endif
|
||||
#else
|
||||
# define MAXSTACK 6000
|
||||
#endif
|
||||
|
|
|
@ -38,7 +38,11 @@ EXTENSION_PREFIX = """\
|
|||
#endif
|
||||
|
||||
#ifdef __wasi__
|
||||
# define MAXSTACK 4000
|
||||
# ifdef Py_DEBUG
|
||||
# define MAXSTACK 1000
|
||||
# else
|
||||
# define MAXSTACK 4000
|
||||
# endif
|
||||
#else
|
||||
# define MAXSTACK 6000
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue