diff options
| author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-08-04 19:26:59 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-04 19:26:59 -0600 |
| commit | 87154d8dd890af0e847e91b06c71c741c08510d0 (patch) | |
| tree | f85b1735e571bc110d0dac921ef0501c2daaefa0 /Include/cpython | |
| parent | e1182bc3776ea7cfdd3f82d5ba4fdfee40ae57ee (diff) | |
| download | cpython-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.h | 5 |
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 |
