Skip to content

Commit

Permalink
use intr_ptr in INSTRUMENTED_RESUME
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Sep 10, 2023
1 parent 371fa66 commit 2cfbdbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ dummy_func(
tstate, oparg > 0, frame, next_instr-1);
stack_pointer = _PyFrame_GetStackPointer(frame);
ERROR_IF(err, error);
if (frame->prev_instr != next_instr-1) {
assert(frame->prev_instr == frame->instr_ptr);
if (frame->instr_ptr != next_instr-1) {
/* Instrumentation has jumped */
next_instr = frame->prev_instr;
frame->instr_ptr = next_instr;
Expand Down
3 changes: 2 additions & 1 deletion Python/generated_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2cfbdbf

Please sign in to comment.