From d8a63cf5062060bc98cec936a01ee3012622cc51 Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Tue, 10 Aug 2021 10:47:47 +0100 Subject: [PATCH] Fix stats for STORE_ATTR specialization. --- Python/ceval.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Python/ceval.c b/Python/ceval.c index b7b63856c61c80..f685c79b4cac0a 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2767,6 +2767,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr case TARGET(STORE_ATTR): { PREDICTED(STORE_ATTR); + STAT_INC(STORE_ATTR, unquickened); PyObject *name = GETITEM(names, oparg); PyObject *owner = TOP(); PyObject *v = SECOND(); @@ -3503,6 +3504,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr STAT_INC(STORE_ATTR, deferred); cache->adaptive.counter--; oparg = cache->adaptive.original_oparg; + STAT_DEC(STORE_ATTR, unquickened); JUMP_TO_INSTRUCTION(STORE_ATTR); } }