summaryrefslogtreecommitdiffstats
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorKen Jin <kenjin@python.org>2025-05-02 16:36:29 (GMT)
committerGitHub <noreply@github.com>2025-05-02 16:36:29 (GMT)
commitddac7ac59a7dfa4437562b6e705e64865c3b1e9a (patch)
tree20f83f6e1b605071f80346659124a99cd04d2d79 /Python/executor_cases.c.h
parent987e45e6326c6174fb7a300f44b9d8e4e26370c9 (diff)
downloadcpython-ddac7ac59a7dfa4437562b6e705e64865c3b1e9a.zip
cpython-ddac7ac59a7dfa4437562b6e705e64865c3b1e9a.tar.gz
cpython-ddac7ac59a7dfa4437562b6e705e64865c3b1e9a.tar.bz2
gh-132744: Check recursion limit in CALL_PY_GENERAL (GH-132746)
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r--Python/executor_cases.c.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index 040be54..70f092e 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -5094,6 +5094,10 @@
UOP_STAT_INC(uopcode, miss);
JUMP_TO_JUMP_TARGET();
}
+ break;
+ }
+
+ case _CHECK_RECURSION_REMAINING: {
if (tstate->py_recursion_remaining <= 1) {
UOP_STAT_INC(uopcode, miss);
JUMP_TO_JUMP_TARGET();