aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-10-15 15:06:41 -0400
committerGitHub <noreply@github.com>2024-10-15 15:06:41 -0400
commit3ea488aac44887a7cdb30be69580c81a0ca6afe2 (patch)
tree925b843905d373016f38c08431a7658fd10db081 /Python/pylifecycle.c
parent206de4155b01f6285c5551d2224391fa1fa0ac14 (diff)
downloadcpython-3ea488aac44887a7cdb30be69580c81a0ca6afe2.tar.gz
cpython-3ea488aac44887a7cdb30be69580c81a0ca6afe2.zip
gh-124218: Use per-thread refcounts for code objects (#125216)
Use per-thread refcounting for the reference from function objects to their corresponding code object. This can be a source of contention when frequently creating nested functions. Deferred refcounting alone isn't a great fit here because these references are on the heap and may be modified by other libraries.
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index ebeee4f41d7..5fb9c4f7c71 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_uniqueid.h" // _PyType_FinalizeIdPool()
+#include "pycore_uniqueid.h" // _PyObject_FinalizeUniqueIdPool()
#include "pycore_typeobject.h" // _PyTypes_InitTypes()
#include "pycore_typevarobject.h" // _Py_clear_generic_types()
#include "pycore_unicodeobject.h" // _PyUnicode_InitTypes()