summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMichael Droettboom <mdboom@gmail.com>2023-12-12 21:17:08 (GMT)
committerGitHub <noreply@github.com>2023-12-12 21:17:08 (GMT)
commitdfaa9e060bf6d69cb862a2ac140b8fccbebf3000 (patch)
treeec73e8ba939d7e6799b360d5c52b3c9352c46269 /Python
parent81a15ea74e2607728fceb822dfcc1aabff00478a (diff)
downloadcpython-dfaa9e060bf6d69cb862a2ac140b8fccbebf3000.zip
cpython-dfaa9e060bf6d69cb862a2ac140b8fccbebf3000.tar.gz
cpython-dfaa9e060bf6d69cb862a2ac140b8fccbebf3000.tar.bz2
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.
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval_macros.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h
index f298c60..ac44aec 100644
--- a/Python/ceval_macros.h
+++ b/Python/ceval_macros.h
@@ -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)