From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Sun, 19 Oct 2025 13:53:33 +0000 (+0100) Subject: Turn off tracing on dynamic exit X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=960d647c75ce80b1787b9f8dcb6f8e0b1d6528f9;p=thirdparty%2FPython%2Fcpython.git Turn off tracing on dynamic exit --- 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; }