mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
bpo-42500: Fix recursion in or after except (GH-23568)
* Use counter, rather boolean state when handling soft overflows.
This commit is contained in:
parent
93a0ef7647
commit
4e7a69bdb6
9 changed files with 76 additions and 72 deletions
|
@ -605,7 +605,7 @@ new_threadstate(PyInterpreterState *interp, int init)
|
|||
|
||||
tstate->frame = NULL;
|
||||
tstate->recursion_depth = 0;
|
||||
tstate->overflowed = 0;
|
||||
tstate->recursion_headroom = 0;
|
||||
tstate->stackcheck_counter = 0;
|
||||
tstate->tracing = 0;
|
||||
tstate->use_tracing = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue