mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
GH-113655: Lower the C recursion limit on various platforms (GH-113944)
This commit is contained in:
parent
6c502ba809
commit
17b73ab99e
13 changed files with 41 additions and 39 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue