File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ static inline int _Py_MakeRecCheck(PyThreadState *tstate) {
219219 _PyThreadStateImpl * _tstate = (_PyThreadStateImpl * )tstate ;
220220 // Overflow if stack pointer is between soft limit and the base of the hardware stack.
221221 // If it is below the hardware stack base, assume that we have the wrong stack limits, and do nothing.
222- // We could have the wrong stack limits becuase of limited platform support, or user-space threads.
222+ // We could have the wrong stack limits because of limited platform support, or user-space threads.
223223#if _Py_STACK_GROWS_DOWN
224224 return here_addr < _tstate -> c_stack_soft_limit && here_addr >= _tstate -> c_stack_soft_limit - 2 * _PyOS_STACK_MARGIN_BYTES ;
225225#else
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ elif stack_pointer < soft_limit:
4848
4949### User space threads and other oddities
5050
51- Some libraries provide user-space threads. These will change the C stack are runtime.
51+ Some libraries provide user-space threads. These will change the C stack at runtime.
5252To guard against this we only raise if the stack pointer is in the window between the expected stack base and the soft limit.
5353
5454### Diagnosing and fixing stack overflows
You can’t perform that action at this time.
0 commit comments