]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-102304: Move the Total Refcount to PyInterpreterState (gh-102545)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 21 Mar 2023 17:46:09 +0000 (11:46 -0600)
committerGitHub <noreply@github.com>
Tue, 21 Mar 2023 17:46:09 +0000 (11:46 -0600)
commit743687434c5baf01c266320b34c7a828726702a6
tree6d26f4fcb5aaa2b606b433aecad939e9f36734f9
parent4bb1dd3c5c14338c9d9cea5988431c858b3b76e0
gh-102304: Move the Total Refcount to PyInterpreterState (gh-102545)

Moving it valuable with a per-interpreter GIL.  However, it is also useful without one, since it allows us to identify refleaks within a single interpreter or where references are escaping an interpreter.  This becomes more important as we move the obmalloc state to PyInterpreterState.

https://github.com/python/cpython/issues/102304
13 files changed:
Include/cpython/object.h
Include/internal/pycore_interp.h
Include/internal/pycore_object.h
Include/internal/pycore_object_state.h
Objects/bytesobject.c
Objects/dictobject.c
Objects/object.c
Objects/structseq.c
Objects/tupleobject.c
Objects/typeobject.c
Python/pylifecycle.c
Python/pystate.c
Python/sysmodule.c