https://github.com/python/cpython/commit/8eda146e87d5531c9d2bc62fd1fea3bd3163f9b1
commit: 8eda146e87d5531c9d2bc62fd1fea3bd3163f9b1
branch: main
author: Guido van Rossum <[email protected]>
committer: gvanrossum <[email protected]>
date: 2024-04-02T18:25:48Z
summary:

Fix successor opcode name printing in Tier 2 DEOPT debug message (#117471)

files:
M Python/ceval.c

diff --git a/Python/ceval.c b/Python/ceval.c
index 1b13eb1702355f..f3b73165e9f28b 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1078,7 +1078,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, 
_PyInterpreterFrame *frame, int
         printf("DEOPT: [UOp ");
         _PyUOpPrint(&next_uop[-1]);
         printf(" -> %s]\n",
-               _PyOpcode_OpName[frame->instr_ptr->op.code]);
+               _PyOpcode_OpName[next_instr->op.code]);
     }
 #endif
     OPT_HIST(trace_uop_execution_counter, trace_run_length_hist);

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to