Skip to content

Commit

Permalink
Revert "8 -> 16"
Browse files Browse the repository at this point in the history
This reverts commit 6ba4e59.
  • Loading branch information
Fidget-Spinner committed Jan 21, 2025
1 parent 6ba4e59 commit 959ba82
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 959ba82

Please sign in to comment.