Skip to content

Commit 16a305f

Browse files
authored
Make RESUME monitoring more readable and robust (GH-142136)
1 parent a043407 commit 16a305f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ dummy_func(
240240

241241
op(_MONITOR_RESUME, (--)) {
242242
int err = _Py_call_instrumentation(
243-
tstate, oparg > 0, frame, this_instr);
243+
tstate, oparg == 0 ? PY_MONITORING_EVENT_PY_START : PY_MONITORING_EVENT_PY_RESUME, frame, this_instr);
244244
ERROR_IF(err);
245245
if (frame->instr_ptr != this_instr) {
246246
/* Instrumentation has jumped */

Python/generated_cases.c.h

Lines changed: 1 addition & 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)