]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117439: Make refleak checking thread-safe without the GIL (#117469)
authorSam Gross <colesbury@gmail.com>
Mon, 8 Apr 2024 16:11:36 +0000 (12:11 -0400)
committerGitHub <noreply@github.com>
Mon, 8 Apr 2024 16:11:36 +0000 (12:11 -0400)
commit1a6594f66166206b08f24c3ba633c85f86f99a56
tree961c4d6e2f694e482636643993cd17ebbf9ea2fd
parent2067da25796ea3254d0edf61a39bcc0326c4f71d
gh-117439: Make refleak checking thread-safe without the GIL (#117469)

This keeps track of the per-thread total reference count operations in
PyThreadState in the free-threaded builds. The count is merged into the
interpreter's total when the thread exits.
Include/internal/pycore_object.h
Include/internal/pycore_tstate.h
Objects/bytesobject.c
Objects/dictobject.c
Objects/object.c
Objects/tupleobject.c
Objects/unicodeobject.c
Python/gc_free_threading.c
Python/pystate.c