File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ PyAPI_FUNC(void) PyErr_DisplayException(PyObject *);
2121/* Stuff with no proper home (yet) */
2222PyAPI_DATA (int ) (* PyOS_InputHook )(void );
2323
24- /* Stack size, in "pointers". This must be large enough, so
25- * no two calls to check recursion depth are more than this far
24+ /* Stack size, in "pointers". This must be large enough, so
25+ * no two calls to check recursion depth are more than this far
2626 * apart. In practice, that means it must be larger than the C
2727 * stack consumption of PyEval_EvalDefault */
2828#if defined(Py_DEBUG ) && defined(WIN32 )
Original file line number Diff line number Diff line change @@ -344,8 +344,8 @@ _Py_UpdateRecursionLimits(PyThreadState *tstate)
344344{
345345 char here ;
346346 uintptr_t here_addr = (uintptr_t )& here ;
347- int to_probe = PYOS_STACK_MARGIN_BYTES * 2 ;
348347#ifdef USE_STACKCHECK
348+ int to_probe = PYOS_STACK_MARGIN_BYTES * 2 ;
349349 if (tstate -> c_stack_top == 0 ) {
350350 assert (tstate -> c_stack_soft_limit == UINTPTR_MAX );
351351 tstate -> c_stack_top = _Py_SIZE_ROUND_UP (here_addr , 4096 );
@@ -355,7 +355,7 @@ _Py_UpdateRecursionLimits(PyThreadState *tstate)
355355 int depth ;
356356 uintptr_t implicit_hard_limit = tstate -> c_stack_soft_limit - PYOS_STACK_MARGIN_BYTES ;
357357 _Py_StackProbe (implicit_hard_limit , to_probe , & depth );
358- tstate -> c_stack_soft_limit = implicit_hard_limit - depth + PYOS_STACK_MARGIN_BYTES * 2 ;
358+ tstate -> c_stack_soft_limit = implicit_hard_limit - depth + PYOS_STACK_MARGIN_BYTES * 2 ;
359359 if (depth != to_probe ) {
360360 tstate -> c_stack_hard_limit = tstate -> c_stack_soft_limit - PYOS_STACK_MARGIN_BYTES ;
361361 }
You can’t perform that action at this time.
0 commit comments