mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
gh-132744: Check recursion limit in CALL_PY_GENERAL (GH-132746)
This commit is contained in:
parent
987e45e632
commit
ddac7ac59a
9 changed files with 220 additions and 170 deletions
4
Python/executor_cases.c.h
generated
4
Python/executor_cases.c.h
generated
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue