8000 use intr_ptr in INSTRUMENTED_RESUME · python/cpython@2cfbdbf · GitHub
[go: up one dir, main page]

Skip to content

Commit 2cfbdbf

Browse files
committed
use intr_ptr in INSTRUMENTED_RESUME
1 parent 371fa66 commit 2cfbdbf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Python/bytecodes.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ dummy_func(
183183
tstate, oparg > 0, frame, next_instr-1);
184184
stack_pointer = _PyFrame_GetStackPointer(frame);
185185
ERROR_IF(err, error);
186-
if (frame->prev_instr != next_instr-1) {
186+
assert(frame->prev_instr == frame->instr_ptr);
187+
if (frame->instr_ptr != next_instr-1) {
187188
/* Instrumentation has jumped */
188189
next_instr = frame->prev_instr;
189190
frame->instr_ptr = next_instr;

Python/generated_cases.c.h

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
0