Skip to content

Commit 40f4d64

Browse files
authored
GH-118036: Fix a bug with CALL_STAT_INC (#117933)
We were under-counting calls in `_PyEvalFramePushAndInit` because the `CALL_STAT_INC` macro was redefined to a no-op for the Tier 2 interpreter. The fix is not to `#undef` it at all. This results in ~37% more "Frames pushed" reported under "Call stats".
1 parent 81a926b commit 40f4d64

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Python/ceval.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,8 +978,6 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
978978
#define STAT_INC(opname, name) ((void)0)
979979
#undef STAT_DEC
980980
#define STAT_DEC(opname, name) ((void)0)
981-
#undef CALL_STAT_INC
982-
#define CALL_STAT_INC(name) ((void)0)
983981
#endif
984982

985983
#undef ENABLE_SPECIALIZATION

0 commit comments

Comments
 (0)