From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Wed, 5 Nov 2025 18:27:51 +0000 (+0000) Subject: fix frame owned by interp X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=253f230f26a3fce983baefbc77ea508b4b981a47;p=thirdparty%2FPython%2Fcpython.git fix frame owned by interp --- diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 8c73f35acfe4..3b14415f540b 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -5514,6 +5514,9 @@ dummy_func( TIER2_TO_TIER2(executor); } } + if (frame->owner >= FRAME_OWNED_BY_INTERPRETER) { + GOTO_TIER_ONE(target); + } if (!backoff_counter_triggers(temperature)) { exit->temperature = advance_backoff_counter(temperature); GOTO_TIER_ONE(target); diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index 173380aff00e..28c139bf9e57 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -7563,6 +7563,9 @@ TIER2_TO_TIER2(executor); } } + if (frame->owner >= FRAME_OWNED_BY_INTERPRETER) { + GOTO_TIER_ONE(target); + } if (!backoff_counter_triggers(temperature)) { exit->temperature = advance_backoff_counter(temperature); GOTO_TIER_ONE(target);