]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
remove faulty assertion
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Tue, 28 Oct 2025 11:11:39 +0000 (11:11 +0000)
committerKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Tue, 28 Oct 2025 11:11:39 +0000 (11:11 +0000)
Python/ceval.c

index 29a110ce28da6cb657d883f6634b87fd167b4ad3..76b09488c3b85495a3adc174bd091ebb05a4b7ef 100644 (file)
@@ -1003,7 +1003,6 @@ bail_tracing_and_jit(PyThreadState *tstate, _PyInterpreterFrame *frame)
     if (exit == NULL) {
         // We hold a strong reference to the code object, so the instruction won't be freed.
         if (err <= 0) {
-            assert(tstate->interp->jit_state.jump_backward_instr->op.code == JUMP_BACKWARD_JIT);
             _Py_BackoffCounter counter = tstate->interp->jit_state.jump_backward_instr[1].counter;
             tstate->interp->jit_state.jump_backward_instr[1].counter = restart_backoff_counter(counter);
         }