Skip to content

Commit ab1fdf3

Browse files
miss-islingtonFidget-Spinnermarkshannon
authored
[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 f701f98) Co-authored-by: Ken Jin <[email protected]> Co-authored-by: Mark Shannon <[email protected]>
1 parent c7ede76 commit ab1fdf3

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
@@ -70,9 +70,11 @@ do { \
7070
} while (0)
7171

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

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

0 commit comments

Comments
 (0)