gh-117457: Regen executor cases post PR #117477 (#117559)

This commit is contained in:
Erlend E. Aasland 2024-04-05 12:13:00 +02:00 committed by GitHub
parent 9c1dfe21fd
commit 757b62493b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3984,8 +3984,14 @@
case _CHECK_STACK_SPACE_OPERAND: {
uint32_t framesize = (uint32_t)CURRENT_OPERAND();
assert(framesize <= INT_MAX);
if (!_PyThreadState_HasStackSpace(tstate, framesize)) JUMP_TO_JUMP_TARGET();
if (tstate->py_recursion_remaining <= 1) JUMP_TO_JUMP_TARGET();
if (!_PyThreadState_HasStackSpace(tstate, framesize)) {
UOP_STAT_INC(uopcode, miss);
JUMP_TO_JUMP_TARGET();
}
if (tstate->py_recursion_remaining <= 1) {
UOP_STAT_INC(uopcode, miss);
JUMP_TO_JUMP_TARGET();
}
break;
}