mirror of
https://github.com/python/cpython.git
synced 2025-11-08 17:41:42 +00:00
[3.14] gh-137883: Check the recursion limit for specialized keyword argument calls (GH-137887) (#137945)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
parent
9fa74c57fe
commit
8b3f9ae2ca
5 changed files with 19 additions and 1 deletions
8
Python/generated_cases.c.h
generated
8
Python/generated_cases.c.h
generated
|
|
@ -3324,6 +3324,14 @@
|
|||
JUMP_TO_PREDICTED(CALL_KW);
|
||||
}
|
||||
}
|
||||
// _CHECK_RECURSION_REMAINING
|
||||
{
|
||||
if (tstate->py_recursion_remaining <= 1) {
|
||||
UPDATE_MISS_STATS(CALL_KW);
|
||||
assert(_PyOpcode_Deopt[opcode] == (CALL_KW));
|
||||
JUMP_TO_PREDICTED(CALL_KW);
|
||||
}
|
||||
}
|
||||
// _PY_FRAME_KW
|
||||
{
|
||||
kwnames = stack_pointer[-1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue