From 03de1bfd69bd13efae82e10530aca87cd1c29869 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 1 Nov 2023 12:31:53 -0700 Subject: [PATCH] Even better fix -- increase stack space on Windows in debug mode --- Include/cpython/pystate.h | 7 +------ PCbuild/python.vcxproj | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h index f94b6fe0753616..ec99f90d669d12 100644 --- a/Include/cpython/pystate.h +++ b/Include/cpython/pystate.h @@ -214,12 +214,7 @@ struct _ts { # define Py_C_RECURSION_LIMIT 500 #else // This value is duplicated in Lib/test/support/__init__.py -# if defined(MS_WINDOWS) && defined(Py_DEBUG) - // On Windows in debug mode the interpreter uses more stack space -# define Py_C_RECURSION_LIMIT 1000 -# else -# define Py_C_RECURSION_LIMIT 1500 -# endif +# define Py_C_RECURSION_LIMIT 1500 #endif diff --git a/PCbuild/python.vcxproj b/PCbuild/python.vcxproj index f4640454a73070..8b733865962373 100644 --- a/PCbuild/python.vcxproj +++ b/PCbuild/python.vcxproj @@ -95,7 +95,7 @@ Console 2000000 - 8000000 + 12000000