From 959ba82677bf2eb6e273e0eca00a2710f331261c Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Tue, 21 Jan 2025 12:56:18 +0800 Subject: [PATCH] Revert "8 -> 16" This reverts commit 6ba4e59df4beb8cdc900345429d9947f8f9849af. --- Python/ceval.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Python/ceval.c b/Python/ceval.c index 033c34e7ad4921..fd1e62cd042100 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -883,7 +883,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int { int lltrace = maybe_lltrace_resume_frame(frame, &entry_frame, GLOBALS()); - FT_ATOMIC_STORE_UINT16_RELAXED(frame->lltrace, (uint8_t)lltrace); + FT_ATOMIC_STORE_UINT8_RELAXED(frame->lltrace, (uint8_t)lltrace); if (lltrace < 0) { goto exit_unwind; } @@ -1006,7 +1006,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int } /* Resume normal execution */ #ifdef LLTRACE - if (FT_ATOMIC_LOAD_UINT16_RELAXED(frame->lltrace) >= 5) { + if (FT_ATOMIC_LOAD_UINT8_RELAXED(frame->lltrace) >= 5) { lltrace_resume_frame(frame); } #endif @@ -1083,7 +1083,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int for (;;) { uopcode = next_uop->opcode; #ifdef Py_DEBUG - if (FT_ATOMIC_LOAD_UINT16_RELAXED(frame->lltrace) >= 3) { + if (FT_ATOMIC_LOAD_UINT8_RELAXED(frame->lltrace) >= 3) { dump_stack(frame, stack_pointer); if (next_uop->opcode == _START_EXECUTOR) { printf("%4d uop: ", 0); @@ -1125,7 +1125,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int jump_to_error_target: #ifdef Py_DEBUG - if (FT_ATOMIC_LOAD_UINT16_RELAXED(frame->lltrace) >= 2) { + if (FT_ATOMIC_LOAD_UINT8_RELAXED(frame->lltrace) >= 2) { printf("Error: [UOp "); _PyUOpPrint(&next_uop[-1]); printf(" @ %d -> %s]\n", @@ -1161,7 +1161,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int next_instr = next_uop[-1].target + _PyFrame_GetBytecode(frame); goto_to_tier1: #ifdef Py_DEBUG - if (FT_ATOMIC_LOAD_UINT16_RELAXED(frame->lltrace) >= 2) { + if (FT_ATOMIC_LOAD_UINT8_RELAXED(frame->lltrace) >= 2) { printf("DEOPT: [UOp "); _PyUOpPrint(&next_uop[-1]); printf(" -> %s]\n",