]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-139109: Add terminator to JIT code when halting due to invalid dependencies ...
authorKen Jin <kenjin@python.org>
Mon, 22 Dec 2025 20:54:47 +0000 (04:54 +0800)
committerGitHub <noreply@github.com>
Mon, 22 Dec 2025 20:54:47 +0000 (20:54 +0000)
* 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>
Misc/NEWS.d/next/Core_and_Builtins/2025-12-21-00-25-26.gh-issue-139109.gwSsOL.rst [new file with mode: 0644]
Python/optimizer.c

diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-12-21-00-25-26.gh-issue-139109.gwSsOL.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-12-21-00-25-26.gh-issue-139109.gwSsOL.rst
new file mode 100644 (file)
index 0000000..17cceac
--- /dev/null
@@ -0,0 +1 @@
+Add missing terminator in certain cases when tracing in the new JIT compiler.
index 6e7f599fbe988f7f0fe0e05debc2109ad1265f1f..869889bf2598d8a11b7d97fd8c296006e59e7ce7 100644 (file)
@@ -710,7 +710,7 @@ _PyJit_translate_single_bytecode_to_trace(
     }
 
     if (!_tstate->jit_tracer_state.prev_state.dependencies_still_valid) {
-        goto done;
+        goto full;
     }
 
     // This happens when a recursive call happens that we can't trace. Such as Python -> C -> Python calls