From 960d647c75ce80b1787b9f8dcb6f8e0b1d6528f9 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Sun, 19 Oct 2025 14:53:33 +0100 Subject: [PATCH] Turn off tracing on dynamic exit --- Python/bytecodes.c | 11 +---------- Python/executor_cases.c.h | 11 +---------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/Python/bytecodes.c b/Python/bytecodes.c index ce2ff2c666f8..38ac989e6652 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -5482,16 +5482,7 @@ dummy_func( TIER2_TO_TIER2(executor); } else { - if (frame->owner >= FRAME_OWNED_BY_INTERPRETER) { - GOTO_TIER_ONE(target, 0); - } - if (!backoff_counter_triggers(temperature)) { - exit->temperature = advance_backoff_counter(temperature); - GOTO_TIER_ONE(target, 0); - } - exit->temperature = initial_temperature_backoff_counter(); - _PyJIT_InitializeTracing(tstate, frame, target, STACK_LEVEL(), 0, NULL); - GOTO_TIER_ONE(target, 1); + GOTO_TIER_ONE(target, 0); } } diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index ade852159afb..8b2b6b899274 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -7546,16 +7546,7 @@ TIER2_TO_TIER2(executor); } else { - if (frame->owner >= FRAME_OWNED_BY_INTERPRETER) { - GOTO_TIER_ONE(target, 0); - } - if (!backoff_counter_triggers(temperature)) { - exit->temperature = advance_backoff_counter(temperature); - GOTO_TIER_ONE(target, 0); - } - exit->temperature = initial_temperature_backoff_counter(); - _PyJIT_InitializeTracing(tstate, frame, target, STACK_LEVEL(), 0, NULL); - GOTO_TIER_ONE(target, 1); + GOTO_TIER_ONE(target, 0); } break; } -- 2.47.3