]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix lltrace on jit debug builds
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Sat, 18 Oct 2025 23:35:34 +0000 (00:35 +0100)
committerKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Sat, 18 Oct 2025 23:35:34 +0000 (00:35 +0100)
Tools/jit/template.c

index d40217bc87ff51d0b9ecac78182a824221aa3d20..471e052c2d8d52944bf27140b9513cc3eb59325c 100644 (file)
@@ -69,9 +69,11 @@ do {                                                \
     } while (0)
 
 #undef LLTRACE_RESUME_FRAME
-#define LLTRACE_RESUME_FRAME() \
-    do {                       \
-    } while (0)
+#ifdef Py_DEBUG
+#define LLTRACE_RESUME_FRAME() frame->lltrace = 0;
+#else
+#define LLTRACE_RESUME_FRAME()
+#endif
 
 #define PATCH_JUMP(ALIAS)                                                 \
 do {                                                                      \