Skip to content

Commit 665d280

Browse files
gh-139109: Add terminator to JIT code when halting due to invalid dependencies (#143033)
* Add terminator to JIT code when halting due to invalid dependencies * 📜🤖 Added by blurb_it. --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
1 parent 3c0888b commit 665d280

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add missing terminator in certain cases when tracing in the new JIT compiler.

Python/optimizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ _PyJit_translate_single_bytecode_to_trace(
710710
}
711711

712712
if (!_tstate->jit_tracer_state.prev_state.dependencies_still_valid) {
713-
goto done;
713+
goto full;
714714
}
715715

716716
// This happens when a recursive call happens that we can't trace. Such as Python -> C -> Python calls

0 commit comments

Comments
 (0)