]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-140312: Set lltrace on JIT debug builds (GH-140313) (#140887)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 1 Nov 2025 16:49:35 +0000 (17:49 +0100)
committerGitHub <noreply@github.com>
Sat, 1 Nov 2025 16:49:35 +0000 (16:49 +0000)
gh-140312: Set lltrace on JIT debug builds (GH-140313)
(cherry picked from commit f701f98052e906af9a065d68bdf2398ef3b476d9)

Co-authored-by: Ken Jin <kenjin@python.org>
Co-authored-by: Mark Shannon <mark@hotpy.org>
Tools/jit/template.c

index 5ee26f93f1e2666e8100c8b5498baa2317267b14..d042699680c639c246fdb812fb9ce57185453f92 100644 (file)
@@ -70,9 +70,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() do {} while (0)
+#endif
 
 #define PATCH_JUMP(ALIAS)                                                \
 do {                                                                     \