mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-139653: Remove assertions in _Py_InitializeRecursionLimits() (#141551)
These checks were invalid and failed randomly on FreeBSD and Alpine Linux.
This commit is contained in:
parent
fa245df4a0
commit
a415a1812c
1 changed files with 0 additions and 7 deletions
|
|
@ -523,13 +523,6 @@ _Py_InitializeRecursionLimits(PyThreadState *tstate)
|
|||
_PyThreadStateImpl *ts = (_PyThreadStateImpl *)tstate;
|
||||
ts->c_stack_init_base = base;
|
||||
ts->c_stack_init_top = top;
|
||||
|
||||
// Test the stack pointer
|
||||
#if !defined(NDEBUG) && !defined(__wasi__)
|
||||
uintptr_t here_addr = _Py_get_machine_stack_pointer();
|
||||
assert(ts->c_stack_soft_limit < here_addr);
|
||||
assert(here_addr < ts->c_stack_top);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue