summaryrefslogtreecommitdiff
path: root/Include/cpython
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-07-28 19:23:47 -0600
committerGitHub <noreply@github.com>2022-07-28 19:23:47 -0600
commit3e7cad3bca64ab213c66e2bd41c9d1cf1d057526 (patch)
treedef84e7995f73122d158470f8f178d38726a981c /Include/cpython
parent6e44bf9558dbcaffd78b7c4fc7f6b474388b4a9a (diff)
downloadcpython-git-3e7cad3bca64ab213c66e2bd41c9d1cf1d057526.tar.gz
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.
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/object.h2
1 files changed, 1 insertions, 1 deletions
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 */