]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-124218: Refactor per-thread reference counting (#124844)
authorSam Gross <colesbury@gmail.com>
Tue, 1 Oct 2024 17:05:42 +0000 (13:05 -0400)
committerGitHub <noreply@github.com>
Tue, 1 Oct 2024 17:05:42 +0000 (17:05 +0000)
commitb48253852341c01309b0598852841cd89bc28afd
tree01282cac5ec10baf98a63b76b95041415f6e8048
parent5aa91c56bf14c38b4c7f5ccaaa3cd24fe3fb0f04
gh-124218: Refactor per-thread reference counting (#124844)

Currently, we only use per-thread reference counting for heap type objects and
the naming reflects that. We will extend it to a few additional types in an
upcoming change to avoid scaling bottlenecks when creating nested functions.

Rename some of the files and functions in preparation for this change.
15 files changed:
Include/internal/pycore_interp.h
Include/internal/pycore_object.h
Include/internal/pycore_tstate.h
Include/internal/pycore_typeid.h [deleted file]
Include/internal/pycore_uniqueid.h [new file with mode: 0644]
Makefile.pre.in
Objects/typeobject.c
PCbuild/_freeze_module.vcxproj
PCbuild/_freeze_module.vcxproj.filters
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/gc_free_threading.c
Python/pylifecycle.c
Python/pystate.c
Python/uniqueid.c [moved from Python/typeid.c with 51% similarity]