]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix Py_INCREF() statistics in limited C API 3.10 (#96120)
authorVictor Stinner <vstinner@python.org>
Mon, 29 Aug 2022 12:55:46 +0000 (14:55 +0200)
committerGitHub <noreply@github.com>
Mon, 29 Aug 2022 12:55:46 +0000 (14:55 +0200)
commit026ab6f4e50658b798be8d1ccf4f3005966e33ea
tree952596e5be0ec289063034b0825c21f03f0ddcf7
parentb2714f05c5cc8765178f296f0f8043410e3a5584
Fix Py_INCREF() statistics in limited C API 3.10 (#96120)

In the limited C API with a debug build, Py_INCREF() is implemented
by calling _Py_IncRef() which calls Py_INCREF(). Only call
_Py_INCREF_STAT_INC() once.
Include/object.h