https://github.com/python/cpython/commit/ab1fdf3d7c2e9461301003d60b5c6c6f88d01c3e
commit: ab1fdf3d7c2e9461301003d60b5c6c6f88d01c3e
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: Fidget-Spinner <[email protected]>
date: 2025-11-01T16:49:35Z
summary:

[3.14] gh-140312: Set lltrace on JIT debug builds (GH-140313) (#140887)

gh-140312: Set lltrace on JIT debug builds (GH-140313)
(cherry picked from commit f701f98052e906af9a065d68bdf2398ef3b476d9)

Co-authored-by: Ken Jin <[email protected]>
Co-authored-by: Mark Shannon <[email protected]>

files:
M Tools/jit/template.c

diff --git a/Tools/jit/template.c b/Tools/jit/template.c
index 5ee26f93f1e266..d042699680c639 100644
--- a/Tools/jit/template.c
+++ b/Tools/jit/template.c
@@ -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 {                                                                     \

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to