From: Guido van Rossum Date: Mon, 22 Jan 2024 11:56:28 +0000 (-0800) Subject: gh-113102: Fix typo in INSTRUMENTED_RESUME (GH-114349) X-Git-Tag: v3.13.0a4~389 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f2ddabd1a02e3095b751100b94b529e4e0bcd20;p=thirdparty%2FPython%2Fcpython.git gh-113102: Fix typo in INSTRUMENTED_RESUME (GH-114349) --- diff --git a/Python/bytecodes.c b/Python/bytecodes.c index c48f0a17c60f..7674ff81f64c 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -192,7 +192,7 @@ dummy_func( ERROR_IF(err, error); if (frame->instr_ptr != this_instr) { /* Instrumentation has jumped */ - next_instr = this_instr; + next_instr = frame->instr_ptr; DISPATCH(); } } diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index 68468728d44b..c4bb3aeec5e2 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -3156,7 +3156,7 @@ if (err) goto error; if (frame->instr_ptr != this_instr) { /* Instrumentation has jumped */ - next_instr = this_instr; + next_instr = frame->instr_ptr; DISPATCH(); } }