]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-118036: Fix a bug with CALL_STAT_INC (#117933)
authorGuido van Rossum <guido@python.org>
Thu, 18 Apr 2024 14:59:02 +0000 (07:59 -0700)
committerGitHub <noreply@github.com>
Thu, 18 Apr 2024 14:59:02 +0000 (07:59 -0700)
commit40f4d641a93b1cba89be4bc7b26cdb481e0450d5
treeaa47081d9386a68c6b5bb8184d7e9af832f71a48
parent81a926bd20a8c66646e51b66ef1cfb309b73ebe7
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".
Python/ceval.c