From 253f230f26a3fce983baefbc77ea508b4b981a47 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Wed, 5 Nov 2025 18:27:51 +0000 Subject: [PATCH] fix frame owned by interp --- Python/bytecodes.c | 3 +++ Python/executor_cases.c.h | 3 +++ 2 files changed, 6 insertions(+) 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); -- 2.47.3