From dc414a3158b11f49f40f79978a1ffa189a597f96 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Wed, 24 Sep 2025 19:21:20 +0100 Subject: [PATCH] Track from JUMP_BACKWARD rather than FOR_ITER --- Python/bytecodes.c | 2 +- Python/generated_cases.c.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Python/bytecodes.c b/Python/bytecodes.c index d8e987708eba..770805a98d61 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -2978,7 +2978,7 @@ dummy_func( DISPATCH(); } } - _PyJIT_InitializeTracing(tstate, frame, next_instr, STACK_LEVEL(), 0, NULL); + _PyJIT_InitializeTracing(tstate, frame, this_instr, STACK_LEVEL(), 0, NULL); ENTER_TRACING(); // Don't add the JUMP_BACKWARD_JIT instruction to the trace. DISPATCH(); diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index 1633559d72ac..e190f651fa4c 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -8400,7 +8400,7 @@ DISPATCH(); } } - _PyJIT_InitializeTracing(tstate, frame, next_instr, STACK_LEVEL(), 0, NULL); + _PyJIT_InitializeTracing(tstate, frame, this_instr, STACK_LEVEL(), 0, NULL); ENTER_TRACING(); DISPATCH(); } @@ -22048,7 +22048,7 @@ TRACING_DISPATCH(); } } - _PyJIT_InitializeTracing(tstate, frame, next_instr, STACK_LEVEL(), 0, NULL); + _PyJIT_InitializeTracing(tstate, frame, this_instr, STACK_LEVEL(), 0, NULL); ENTER_TRACING(); TRACING_DISPATCH(); } -- 2.47.3