]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix JIT + debug builds
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Sun, 21 Sep 2025 11:29:43 +0000 (12:29 +0100)
committerKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Sun, 21 Sep 2025 11:29:43 +0000 (12:29 +0100)
Python/bytecodes.c
Python/executor_cases.c.h

index 61e97cb99230a6b2470c05525dabee9562921436..8d3464586e2942518fabe20d2bba08641998b91e 100644 (file)
@@ -5465,7 +5465,7 @@ dummy_func(
 
         tier2 op(_DYNAMIC_EXIT, (exit_p/4 --)) {
             _Py_CODEUNIT *target = frame->instr_ptr;
-#ifdef Py_DEBUG
+#if defined(Py_DEBUG) && !defined(_Py_JIT)
             if (frame->lltrace >= 2) {
                 printf("GUARD IP EXIT: [UOp ");
                 _PyUOpPrint(&next_uop[-1]);
index 62cda4cf98fbba66caa5b7967879885f86a49a1a..efe3c6f52464c17e073f3b3d31695bbd4271fa80 100644 (file)
         case _DYNAMIC_EXIT: {
             PyObject *exit_p = (PyObject *)CURRENT_OPERAND0();
             _Py_CODEUNIT *target = frame->instr_ptr;
-            #ifdef Py_DEBUG
+            #if defined(Py_DEBUG) && !defined(_Py_JIT)
             if (frame->lltrace >= 2) {
                 _PyFrame_SetStackPointer(frame, stack_pointer);
                 printf("GUARD IP EXIT: [UOp ");