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 @@ -221,9 +221,9 @@ static inline int _Py_MakeRecCheck(PyThreadState *tstate) {
221221 // If it is below the hardware stack base, assume that we have the wrong stack limits, and do nothing.
222222 // We could have the wrong stack limits becuase of limited platform support, or user-space threads.
223223#if _Py_STACK_GROWS_DOWN
224- return here_addr < _tstate -> c_stack_soft_limit && here_addr >= _tstate -> c_stack_soft_limit - 2 * _PyOS_STACK_MARGIN_BYTES ;;
224+ return here_addr < _tstate -> c_stack_soft_limit && here_addr >= _tstate -> c_stack_soft_limit - 2 * _PyOS_STACK_MARGIN_BYTES ;
225225#else
226- return here_addr > _tstate -> c_stack_soft_limit && here_addr <= _tstate -> c_stack_soft_limit + 2 * _PyOS_STACK_MARGIN_BYTES ;;
226+ return here_addr > _tstate -> c_stack_soft_limit && here_addr <= _tstate -> c_stack_soft_limit + 2 * _PyOS_STACK_MARGIN_BYTES ;
227227#endif
228228}
229229
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ Recursion checks are performed by `_Py_EnterRecursiveCall()` or `_Py_EnterRecurs
3838
3939``` python
4040kb_used = (stack_top - stack_pointer)>> 10
41- if stack_pointer < bottom_of_machine_stack
42- pass # Our stack limts could be wrong so it is safest to do nothing.
41+ if stack_pointer < bottom_of_machine_stack:
42+ pass # Our stack limits could be wrong so it is safest to do nothing.
4343elif stack_pointer < hard_limit:
4444 FatalError(f " Unrecoverable stack overflow (used { kb_used} kB) " )
4545elif stack_pointer < soft_limit:
You can’t perform that action at this time.
0 commit comments