Skip to content

Commit ddc0e1a

Browse files
mpageebonnal
authored andcommitted
pythongh-115999: Record success in specialize (python#127167)
Record success in `specialize` This matches the existing behavior where we increment the success stat for the generic opcode each time we successfully specialize an instruction.
1 parent 4ff09eb commit ddc0e1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/specialize.c

+1
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ specialize(_Py_CODEUNIT *instr, uint8_t specialized_opcode)
715715
SPEC_FAIL_OTHER);
716716
return;
717717
}
718+
STAT_INC(_PyOpcode_Deopt[specialized_opcode], success);
718719
set_counter((_Py_BackoffCounter *)instr + 1, adaptive_counter_cooldown());
719720
}
720721

0 commit comments

Comments
 (0)