summaryrefslogtreecommitdiff
path: root/Include/cpython
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-08-04 19:26:59 -0600
committerGitHub <noreply@github.com>2022-08-04 19:26:59 -0600
commit87154d8dd890af0e847e91b06c71c741c08510d0 (patch)
treef85b1735e571bc110d0dac921ef0501c2daaefa0 /Include/cpython
parente1182bc3776ea7cfdd3f82d5ba4fdfee40ae57ee (diff)
downloadcpython-git-87154d8dd890af0e847e91b06c71c741c08510d0.tar.gz
gh-94673: Add Per-Interpreter tp_subclasses for Static Builtin Types (gh-95301)
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/object.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h
index 60c7c3e2aa..a26fc7f6aa 100644
--- a/Include/cpython/object.h
+++ b/Include/cpython/object.h
@@ -217,8 +217,8 @@ struct _typeobject {
inquiry tp_is_gc; /* For PyObject_IS_GC */
PyObject *tp_bases;
PyObject *tp_mro; /* method resolution order */
- PyObject *tp_cache;
- PyObject *tp_subclasses;
+ PyObject *tp_cache; /* no longer used */
+ void *tp_subclasses; /* for static builtin types this is an index */
PyObject *tp_weaklist; /* not used for static builtin types */
destructor tp_del;
@@ -227,7 +227,6 @@ struct _typeobject {
destructor tp_finalize;
vectorcallfunc tp_vectorcall;
- size_t tp_static_builtin_index; /* 0 means "not initialized" */
};
/* This struct is used by the specializer