From a767b8f8d7f29291ad5eebe021a62e415ba80e11 Mon Sep 17 00:00:00 2001 From: Ken Jin Date: Sun, 21 Dec 2025 00:22:55 +0000 Subject: [PATCH 1/2] Add terminator to JIT code when halting due to invalid dependencies --- Python/optimizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/optimizer.c b/Python/optimizer.c index 16abced6edbeec..1adc3e92582963 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 From acde60af06b8fa8b34cc889b7a9ae4fb5960e419 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Sun, 21 Dec 2025 00:25:33 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2025-12-21-00-25-26.gh-issue-139109.gwSsOL.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Core_and_Builtins/2025-12-21-00-25-26.gh-issue-139109.gwSsOL.rst 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.