diff options
author | Mark Shannon <mark@hotpy.org> | 2021-08-10 10:40:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 10:40:37 (GMT) |
commit | c7ea1e3dcea6fbc9842463ce2b785b43501b1eaa (patch) | |
tree | abd0a1566a0163d481cb9490ee6adfee1722ebdc /Python | |
parent | d5c217475c4957a8084ac3f92ae012ece5edc7cb (diff) | |
download | cpython-c7ea1e3dcea6fbc9842463ce2b785b43501b1eaa.zip cpython-c7ea1e3dcea6fbc9842463ce2b785b43501b1eaa.tar.gz cpython-c7ea1e3dcea6fbc9842463ce2b785b43501b1eaa.tar.bz2 |
Fix stats for STORE_ATTR specialization. (GH-27708)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index b7b6385..f685c79 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); } } |