mirror of
https://github.com/python/cpython.git
synced 2026-03-05 12:30:50 +00:00
gh-124153: Implement PyType_GetBaseByToken() and Py_tp_token slot (GH-124163)
This commit is contained in:
parent
79a7410236
commit
646f16bdee
18 changed files with 443 additions and 13 deletions
|
|
@ -269,6 +269,7 @@ typedef struct _heaptypeobject {
|
|||
struct _dictkeysobject *ht_cached_keys;
|
||||
PyObject *ht_module;
|
||||
char *_ht_tpname; // Storage for "tp_name"; see PyType_FromModuleAndSpec
|
||||
void *ht_token; // Storage for the "Py_tp_token" slot
|
||||
struct _specialization_cache _spec_cache; // For use by the specializer.
|
||||
#ifdef Py_GIL_DISABLED
|
||||
Py_ssize_t unique_id; // ID used for thread-local refcounting
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue