]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-113655 Lower C recursion limit from 4000 to 3000 on Windows. (GH-114896)
authorMark Shannon <mark@hotpy.org>
Fri, 2 Feb 2024 10:41:28 +0000 (10:41 +0000)
committerGitHub <noreply@github.com>
Fri, 2 Feb 2024 10:41:28 +0000 (10:41 +0000)
Include/cpython/pystate.h

index 1dbf97660f382fdf52cba1375fb917da3e06fc3f..9bc8758e72bd8f2a0caf817d3bc417822b5d2532 100644 (file)
@@ -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