Skip to content

Commit f701f98

Browse files
gh-140312: Set lltrace on JIT debug builds (GH-140313)
Co-authored-by: Mark Shannon <mark@hotpy.org>
1 parent d440a0f commit f701f98

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Tools/jit/template.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ do { \
6969
} while (0)
7070

7171
#undef LLTRACE_RESUME_FRAME
72-
#define LLTRACE_RESUME_FRAME() \
73-
do { \
74-
} while (0)
72+
#ifdef Py_DEBUG
73+
#define LLTRACE_RESUME_FRAME() (frame->lltrace = 0)
74+
#else
75+
#define LLTRACE_RESUME_FRAME() do {} while (0)
76+
#endif
7577

7678
#define PATCH_JUMP(ALIAS) \
7779
do { \

0 commit comments

Comments
 (0)