mirror of
https://github.com/python/cpython.git
synced 2025-10-26 11:14:33 +00:00
[3.13] gh-132744: Check recursion limit in _PY_FRAME_GENERAL (GH-132746) (GH-138032)
This commit is contained in:
parent
8f2280272d
commit
ebccd1de88
9 changed files with 164 additions and 122 deletions
4
Python/executor_cases.c.h
generated
4
Python/executor_cases.c.h
generated
|
|
@ -3233,6 +3233,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