Skip to content

Commit 5d2c92c

Browse files
vstinnerencukou
authored andcommitted
gh-139653: Remove assertions in _Py_InitializeRecursionLimits() (GH-141551)
These checks were invalid and failed randomly on FreeBSD and Alpine Linux.
1 parent 2cca51f commit 5d2c92c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Python/ceval.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -505,13 +505,6 @@ _Py_InitializeRecursionLimits(PyThreadState *tstate)
505505
_PyThreadStateImpl *ts = (_PyThreadStateImpl *)tstate;
506506
ts->c_stack_init_base = base;
507507
ts->c_stack_init_top = top;
508-
509-
// Test the stack pointer
510-
#if !defined(NDEBUG) && !defined(__wasi__)
511-
uintptr_t here_addr = _Py_get_machine_stack_pointer();
512-
assert(ts->c_stack_soft_limit < here_addr);
513-
assert(here_addr < ts->c_stack_top);
514-
#endif
515508
}
516509

517510

0 commit comments

Comments
 (0)