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>
This commit is contained in:
Ken Jin 2025-12-23 04:54:47 +08:00 committed by GitHub
parent 3c0888b25b
commit 665d2807a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View 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