gh-137883: Check the recursion limit for specialized keyword argument calls (GH-137887)

This commit is contained in:
Peter Bierma 2025-08-19 04:53:38 -04:00 committed by GitHub
parent bb75dec87f
commit b07a267953
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 19 additions and 1 deletions

View file

@ -3277,6 +3277,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];