https://github.com/python/cpython/commit/665d2807a09df2bce3452ce2ee36e85299e863b7
commit: 665d2807a09df2bce3452ce2ee36e85299e863b7
branch: main
author: Ken Jin <[email protected]>
committer: Fidget-Spinner <[email protected]>
date: 2025-12-22T20:54:47Z
summary:
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>
files:
A
Misc/NEWS.d/next/Core_and_Builtins/2025-12-21-00-25-26.gh-issue-139109.gwSsOL.rst
M 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
index 00000000000000..17cceac4e09057
--- /dev/null
+++
b/Misc/NEWS.d/next/Core_and_Builtins/2025-12-21-00-25-26.gh-issue-139109.gwSsOL.rst
@@ -0,0 +1 @@
+Add missing terminator in certain cases when tracing in the new JIT compiler.
diff --git a/Python/optimizer.c b/Python/optimizer.c
index 6e7f599fbe988f..869889bf2598d8 100644
--- a/Python/optimizer.c
+++ b/Python/optimizer.c
@@ -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
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]