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

Skip to content

Commit 557f36f

Browse files
committed
use intr_ptr in INSTRUMENTED_RESUME
1 parent 371fa66 commit 557f36f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Python/bytecodes.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ 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 */
188-
next_instr = frame->prev_instr;
189-
frame->instr_ptr = next_instr;
189+
next_instr = frame->instr_ptr;
190190
DISPATCH();
191191
}
192192
}

Python/generated_cases.c.h

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

0 commit comments

Comments
 (0)
0