GH-130396: Include stack margin for debug windows builds (GH-130554)

This commit is contained in:
Mark Shannon 2025-02-25 19:26:21 +00:00 committed by GitHub
parent f963239ff1
commit 2dad1e08ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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