summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-03-02 10:36:38 (GMT)
committerGitHub <noreply@github.com>2021-03-02 10:36:38 (GMT)
commit8b795ab5541d8a4e69be4137dfdc207714270b77 (patch)
treed7fcc96f3243d082ea024964a643a32a004a5fbd /Python/pystate.c
parentf836e5f2194857b24ec03adfcfcce05375868f88 (diff)
downloadcpython-8b795ab5541d8a4e69be4137dfdc207714270b77.zip
cpython-8b795ab5541d8a4e69be4137dfdc207714270b77.tar.gz
cpython-8b795ab5541d8a4e69be4137dfdc207714270b77.tar.bz2
bpo-42500: Fix recursion in or after except (GH-23568) (#24501)
* Use counter, rather boolean state when handling soft overflows. (cherry picked from commit 4e7a69bdb63a104587759d7784124492dcdd496e)
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 9beefa8..71aac6f 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -576,7 +576,7 @@ new_threadstate(PyInterpreterState *interp, int init)
tstate->frame = NULL;
tstate->recursion_depth = 0;
- tstate->overflowed = 0;
+ tstate->recursion_headroom = 0;
tstate->recursion_critical = 0;
tstate->stackcheck_counter = 0;
tstate->tracing = 0;