diff --git a/Include/pythonrun.h b/Include/pythonrun.h index ef4b727442a935..4d459cb92e36ea 100644 --- a/Include/pythonrun.h +++ b/Include/pythonrun.h @@ -28,7 +28,7 @@ PyAPI_DATA(int) (*PyOS_InputHook)(void); #if defined(_Py_ADDRESS_SANITIZER) || defined(_Py_THREAD_SANITIZER) # define PYOS_STACK_MARGIN 4096 #elif defined(Py_DEBUG) && defined(WIN32) -# define PYOS_STACK_MARGIN 3072 +# define PYOS_STACK_MARGIN 4096 #elif defined(__wasi__) /* Web assembly has two stacks, so this isn't really a size */ # define PYOS_STACK_MARGIN 500