mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
gh-113010: Don't decrement deferred in pystats (#113032)
This fixes a recently introduced bug where the deferred count is being unnecessarily decremented to counteract an increment elsewhere that is no longer happening. This caused the values to flip around to "very large" 64-bit numbers.
This commit is contained in:
parent
81a15ea74e
commit
dfaa9e060b
1 changed files with 0 additions and 4 deletions
|
@ -258,10 +258,6 @@ GETITEM(PyObject *v, Py_ssize_t i) {
|
|||
if (ADAPTIVE_COUNTER_IS_ZERO(next_instr->cache)) { \
|
||||
STAT_INC((INSTNAME), deopt); \
|
||||
} \
|
||||
else { \
|
||||
/* This is about to be (incorrectly) incremented: */ \
|
||||
STAT_DEC((INSTNAME), deferred); \
|
||||
} \
|
||||
} while (0)
|
||||
#else
|
||||
#define UPDATE_MISS_STATS(INSTNAME) ((void)0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue