]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Turn off tracing on dynamic exit
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Sun, 19 Oct 2025 13:53:33 +0000 (14:53 +0100)
committerKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Sun, 19 Oct 2025 13:53:33 +0000 (14:53 +0100)
Python/bytecodes.c
Python/executor_cases.c.h

index ce2ff2c666f805961a96dccebe1973a1c9e9aa6d..38ac989e6652fb42a3d6d1d79f9e02fd2ebeabdf 100644 (file)
@@ -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);
             }
         }
 
index ade852159afb42bdf288df3f6eb7c1fac35eaf24..8b2b6b89927454453061d03c168ff6023958ae69 100644 (file)
                 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;
         }