diff options
author | Mark Shannon <mark@hotpy.org> | 2023-12-22 14:25:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-22 14:25:25 (GMT) |
commit | 45e09f921be55e23bed19b5db4c95ce7bd7aad6b (patch) | |
tree | 8ff185ad0ce752b72c9b18f8766c6d2a035643dd /Include/cpython | |
parent | 5f665e99e0b8a52415f83c2416eaf28abaacc3ae (diff) | |
download | cpython-45e09f921be55e23bed19b5db4c95ce7bd7aad6b.zip cpython-45e09f921be55e23bed19b5db4c95ce7bd7aad6b.tar.gz cpython-45e09f921be55e23bed19b5db4c95ce7bd7aad6b.tar.bz2 |
GH-112215: Increase C recursion limit for non debug builds (GH-113397)
Diffstat (limited to 'Include/cpython')
-rw-r--r-- | Include/cpython/pystate.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h index 56172d2..ed7dd82 100644 --- a/Include/cpython/pystate.h +++ b/Include/cpython/pystate.h @@ -223,9 +223,11 @@ struct _ts { // layout, optimization, and WASI runtime. Wasmtime can handle about 700 // recursions, sometimes less. 500 is a more conservative limit. # define Py_C_RECURSION_LIMIT 500 +#elif defined(__s390x__) +# define Py_C_RECURSION_LIMIT 1200 #else // This value is duplicated in Lib/test/support/__init__.py -# define Py_C_RECURSION_LIMIT 1500 +# define Py_C_RECURSION_LIMIT 8000 #endif |