Skip to content

Commit a415a18

Browse files
authored
pythongh-139653: Remove assertions in _Py_InitializeRecursionLimits() (python#141551)
These checks were invalid and failed randomly on FreeBSD and Alpine Linux.
1 parent fa245df commit a415a18

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
@@ -523,13 +523,6 @@ _Py_InitializeRecursionLimits(PyThreadState *tstate)
523523
_PyThreadStateImpl *ts = (_PyThreadStateImpl *)tstate;
524524
ts->c_stack_init_base = base;
525525
ts->c_stack_init_top = top;
526-
527-
// Test the stack pointer
528-
#if !defined(NDEBUG) && !defined(__wasi__)
529-
uintptr_t here_addr = _Py_get_machine_stack_pointer();
530-
assert(ts->c_stack_soft_limit < here_addr);
531-
assert(here_addr < ts->c_stack_top);
532-
#endif
533526
}
534527

535528

0 commit comments

Comments
 (0)