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 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