mirror of
https://github.com/python/cpython.git
synced 2026-06-04 18:45:38 -04:00
GH-113655: Lower the C recursion limit on various platforms (GH-113944)
This commit is contained in:
@@ -224,10 +224,14 @@ struct _ts {
|
||||
// recursions, sometimes less. 500 is a more conservative limit.
|
||||
# define Py_C_RECURSION_LIMIT 500
|
||||
#elif defined(__s390x__)
|
||||
# define Py_C_RECURSION_LIMIT 1200
|
||||
# define Py_C_RECURSION_LIMIT 800
|
||||
#elif defined(_WIN32)
|
||||
# define Py_C_RECURSION_LIMIT 4000
|
||||
#elif defined(_Py_ADDRESS_SANITIZER)
|
||||
# define Py_C_RECURSION_LIMIT 4000
|
||||
#else
|
||||
// This value is duplicated in Lib/test/support/__init__.py
|
||||
# define Py_C_RECURSION_LIMIT 8000
|
||||
# define Py_C_RECURSION_LIMIT 10000
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user