Skip to content

Commit dfaa9e0

Browse files
authored
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.
1 parent 81a15ea commit dfaa9e0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Python/ceval_macros.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,6 @@ GETITEM(PyObject *v, Py_ssize_t i) {
258258
if (ADAPTIVE_COUNTER_IS_ZERO(next_instr->cache)) { \
259259
STAT_INC((INSTNAME), deopt); \
260260
} \
261-
else { \
262-
/* This is about to be (incorrectly) incremented: */ \
263-
STAT_DEC((INSTNAME), deferred); \
264-
} \
265261
} while (0)
266262
#else
267263
#define UPDATE_MISS_STATS(INSTNAME) ((void)0)

0 commit comments

Comments
 (0)