diff options
author | Sam Gross <colesbury@gmail.com> | 2024-10-01 13:05:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-01 17:05:42 +0000 |
commit | b48253852341c01309b0598852841cd89bc28afd (patch) | |
tree | 01282cac5ec10baf98a63b76b95041415f6e8048 /Python/pylifecycle.c | |
parent | 5aa91c56bf14c38b4c7f5ccaaa3cd24fe3fb0f04 (diff) | |
download | cpython-b48253852341c01309b0598852841cd89bc28afd.tar.gz cpython-b48253852341c01309b0598852841cd89bc28afd.zip |
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.
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 8aebbe5c405..d9e89edf5dd 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -28,7 +28,7 @@ #include "pycore_sliceobject.h" // _PySlice_Fini() #include "pycore_sysmodule.h" // _PySys_ClearAuditHooks() #include "pycore_traceback.h" // _Py_DumpTracebackThreads() -#include "pycore_typeid.h" // _PyType_FinalizeIdPool() +#include "pycore_uniqueid.h" // _PyType_FinalizeIdPool() #include "pycore_typeobject.h" // _PyTypes_InitTypes() #include "pycore_typevarobject.h" // _Py_clear_generic_types() #include "pycore_unicodeobject.h" // _PyUnicode_InitTypes() @@ -1834,7 +1834,7 @@ finalize_interp_types(PyInterpreterState *interp) _PyTypes_Fini(interp); #ifdef Py_GIL_DISABLED - _PyType_FinalizeIdPool(interp); + _PyObject_FinalizeUniqueIdPool(interp); #endif _PyCode_Fini(interp); |