From: Mark Shannon Date: Fri, 2 Feb 2024 10:41:28 +0000 (+0000) Subject: GH-113655 Lower C recursion limit from 4000 to 3000 on Windows. (GH-114896) X-Git-Tag: v3.13.0a4~199 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=41fde89e471003b3e70fdd76d6726fba9982a1eb;p=thirdparty%2FPython%2Fcpython.git GH-113655 Lower C recursion limit from 4000 to 3000 on Windows. (GH-114896) --- diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h index 1dbf97660f38..9bc8758e72bd 100644 --- a/Include/cpython/pystate.h +++ b/Include/cpython/pystate.h @@ -229,7 +229,7 @@ struct _ts { #elif defined(__s390x__) # define Py_C_RECURSION_LIMIT 800 #elif defined(_WIN32) -# define Py_C_RECURSION_LIMIT 4000 +# define Py_C_RECURSION_LIMIT 3000 #elif defined(_Py_ADDRESS_SANITIZER) # define Py_C_RECURSION_LIMIT 4000 #else