From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Fri, 7 Nov 2025 22:59:14 +0000 (+0000) Subject: Update optimizer.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=547f5872e020e2fd4abfa86e9d4b5162d4d3b511;p=thirdparty%2FPython%2Fcpython.git Update optimizer.c --- diff --git a/Python/optimizer.c b/Python/optimizer.c index c38f28e224a8..f1d0ca811c7e 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -711,7 +711,10 @@ _PyJit_translate_single_bytecode_to_trace( max_length--; } - RESERVE_RAW(expansion->nuops + needs_guard_ip + 3 + (!OPCODE_HAS_NO_SAVE_IP(opcode)), "uop and various checks"); + // _GUARD_IP leads to an exit. + max_length -= needs_guard_ip; + + RESERVE_RAW(expansion->nuops + needs_guard_ip + 2 + (!OPCODE_HAS_NO_SAVE_IP(opcode)), "uop and various checks"); ADD_TO_TRACE(_CHECK_VALIDITY, 0, 0, target);