[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:
Peter Bierma 2025-08-25 12:19:39 -04:00 committed by GitHub
parent 9fa74c57fe
commit 8b3f9ae2ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 19 additions and 1 deletions

View file

@ -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];