We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b96701 commit cc1c519Copy full SHA for cc1c519
Python/ceval.c
@@ -459,7 +459,7 @@ _Py_InitializeRecursionLimits(PyThreadState *tstate)
459
// Thread sanitizer crashes if we use a bit more than half the stack.
460
_tstate->c_stack_soft_limit = base + (stack_size / 2);
461
#else
462
- _tstate->c_stack_soft_limit = base + PYOS_STACK_MARGIN_BYTES * 2;
+ _tstate->c_stack_soft_limit = base + PYOS_STACK_MARGIN_BYTES * 4;
463
#endif
464
_tstate->c_stack_hard_limit = base + PYOS_STACK_MARGIN_BYTES;
465
assert(_tstate->c_stack_soft_limit < here_addr);
0 commit comments