mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-115999: Record success in specialize
(#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.
This commit is contained in:
parent
4b12a6ff4a
commit
d24a22e9b6
1 changed files with 1 additions and 0 deletions
|
@ -715,6 +715,7 @@ specialize(_Py_CODEUNIT *instr, uint8_t specialized_opcode)
|
|||
SPEC_FAIL_OTHER);
|
||||
return;
|
||||
}
|
||||
STAT_INC(_PyOpcode_Deopt[specialized_opcode], success);
|
||||
set_counter((_Py_BackoffCounter *)instr + 1, adaptive_counter_cooldown());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue