mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
[3.14] gh-140222: Increase stack margin on debug build (GH-142452) (#142471)
gh-140222: Increase stack margin on debug build (GH-142452)
Increase _PyOS_MIN_STACK_SIZE if Python is built in debug mode.
(cherry picked from commit 49207a5226)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
5d5d92b62f
commit
04ecff52c3
1 changed files with 3 additions and 3 deletions
|
|
@ -38,9 +38,9 @@ extern const char* _Py_SourceAsString(
|
|||
* no two calls to check recursion depth are more than this far
|
||||
* apart. In practice, that means it must be larger than the C
|
||||
* stack consumption of PyEval_EvalDefault */
|
||||
#if defined(_Py_ADDRESS_SANITIZER) || defined(_Py_THREAD_SANITIZER)
|
||||
# define _PyOS_LOG2_STACK_MARGIN 12
|
||||
#elif defined(Py_DEBUG) && defined(WIN32)
|
||||
#if (defined(Py_DEBUG) \
|
||||
|| defined(_Py_ADDRESS_SANITIZER) \
|
||||
|| defined(_Py_THREAD_SANITIZER))
|
||||
# define _PyOS_LOG2_STACK_MARGIN 12
|
||||
#else
|
||||
# define _PyOS_LOG2_STACK_MARGIN 11
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue