From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 1 Nov 2025 16:49:35 +0000 (+0100) Subject: [3.14] gh-140312: Set lltrace on JIT debug builds (GH-140313) (#140887) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab1fdf3d7c2e9461301003d60b5c6c6f88d01c3e;p=thirdparty%2FPython%2Fcpython.git [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 Co-authored-by: Mark Shannon --- diff --git a/Tools/jit/template.c b/Tools/jit/template.c index 5ee26f93f1e2..d042699680c6 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 { \