mirror of
https://github.com/python/cpython.git
synced 2025-10-14 18:59:46 +00:00
GH-91079: Revert "GH-91079: Implement C stack limits using addresses, not counters. (GH-130007)" for now (GH130413)
Revert "GH-91079: Implement C stack limits using addresses, not counters. (GH-130007)" for now
Unfortunatlely, the change broke some buildbots.
This reverts commit 2498c22fa0
.
This commit is contained in:
parent
0ff1611574
commit
ef29104f7d
47 changed files with 1466 additions and 1220 deletions
|
@ -1490,9 +1490,10 @@ init_threadstate(_PyThreadStateImpl *_tstate,
|
|||
|
||||
// thread_id and native_thread_id are set in bind_tstate().
|
||||
|
||||
tstate->py_recursion_limit = interp->ceval.recursion_limit;
|
||||
tstate->py_recursion_remaining = interp->ceval.recursion_limit;
|
||||
tstate->c_recursion_remaining = 2;
|
||||
tstate->py_recursion_limit = interp->ceval.recursion_limit,
|
||||
tstate->py_recursion_remaining = interp->ceval.recursion_limit,
|
||||
tstate->c_recursion_remaining = Py_C_RECURSION_LIMIT;
|
||||
|
||||
tstate->exc_info = &tstate->exc_state;
|
||||
|
||||
// PyGILState_Release must not try to delete this thread state.
|
||||
|
@ -1507,10 +1508,6 @@ init_threadstate(_PyThreadStateImpl *_tstate,
|
|||
tstate->previous_executor = NULL;
|
||||
tstate->dict_global_version = 0;
|
||||
|
||||
_tstate->c_stack_soft_limit = UINTPTR_MAX;
|
||||
_tstate->c_stack_top = 0;
|
||||
_tstate->c_stack_hard_limit = 0;
|
||||
|
||||
_tstate->asyncio_running_loop = NULL;
|
||||
_tstate->asyncio_running_task = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue