mirror of
https://github.com/python/cpython.git
synced 2025-10-08 08:01:55 +00:00
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".
This commit is contained in:
parent
81a926bd20
commit
40f4d641a9
1 changed files with 0 additions and 2 deletions
|
@ -978,8 +978,6 @@ enter_tier_two:
|
||||||
#define STAT_INC(opname, name) ((void)0)
|
#define STAT_INC(opname, name) ((void)0)
|
||||||
#undef STAT_DEC
|
#undef STAT_DEC
|
||||||
#define STAT_DEC(opname, name) ((void)0)
|
#define STAT_DEC(opname, name) ((void)0)
|
||||||
#undef CALL_STAT_INC
|
|
||||||
#define CALL_STAT_INC(name) ((void)0)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef ENABLE_SPECIALIZATION
|
#undef ENABLE_SPECIALIZATION
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue