8000 Fix stats for STORE_ATTR specialization. (GH-27708) · python/cpython@c7ea1e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit c7ea1e3

Browse files
authored
Fix stats for STORE_ATTR specialization. (GH-27708)
1 parent d5c2174 commit c7ea1e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/ceval.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2767,6 +2767,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
27672767

27682768
case TARGET(STORE_ATTR): {
27692769
PREDICTED(STORE_ATTR);
2770+
STAT_INC(STORE_ATTR, unquickened);
27702771
PyObject *name = GETITEM(names, oparg);
27712772
PyObject *owner = TOP();
27722773
PyObject *v = SECOND();
@@ -3503,6 +3504,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
35033504
STAT_INC(STORE_ATTR, deferred);
35043505
cache->adaptive.counter--;
35053506
oparg = cache->adaptive.original_oparg;
3507+
STAT_DEC(STORE_ATTR, unquickened);
35063508
JUMP_TO_INSTRUCTION(STORE_ATTR);
35073509
}
35083510
}

0 commit comments

Comments
 (0)
0