From 3e7cad3bca64ab213c66e2bd41c9d1cf1d057526 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Thu, 28 Jul 2022 19:23:47 -0600 Subject: gh-94673: Add Per-Interpreter tp_weaklist for Static Builtin Types (#95302) * Store tp_weaklist on the interpreter state for static builtin types. * Factor out _PyStaticType_GET_WEAKREFS_LISTPTR(). * Add _PyStaticType_ClearWeakRefs(). * Add a comment about how _PyStaticType_ClearWeakRefs() loops. * Document the change. * Update Doc/whatsnew/3.12.rst * Fix a typo. --- Include/cpython/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include/cpython') diff --git a/Include/cpython/object.h b/Include/cpython/object.h index 1ca1a576fb..026803320a 100644 --- a/Include/cpython/object.h +++ b/Include/cpython/object.h @@ -219,7 +219,7 @@ struct _typeobject { PyObject *tp_mro; /* method resolution order */ PyObject *tp_cache; PyObject *tp_subclasses; - PyObject *tp_weaklist; + PyObject *tp_weaklist; /* not used for static builtin types */ destructor tp_del; /* Type attribute cache version tag. Added in version 2.6 */ -- cgit v1.2.1