]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix no-opt JIT
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Sat, 25 Oct 2025 23:57:30 +0000 (00:57 +0100)
committerKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Sat, 25 Oct 2025 23:57:30 +0000 (00:57 +0100)
Python/optimizer.c

index 995ddee8605878c63653a254c118f33b20d08b8f..f745f16fcf30b7fc39f8e68bf167d295d644bf9b 100644 (file)
@@ -690,7 +690,7 @@ _PyJit_translate_single_bytecode_to_trace(
     }
 
     // One for possible _DEOPT, one because _CHECK_VALIDITY itself might _DEOPT
-    max_length -= 1;
+    max_length -= 2;
 
     const struct opcode_macro_expansion *expansion = &_PyOpcode_macro_expansion[opcode];