mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
GH-115776: Embed the values array into the object, for "normal" Python objects. (GH-116115)
This commit is contained in:
parent
c97d3af239
commit
c32dc47aca
35 changed files with 787 additions and 537 deletions
|
@ -629,13 +629,18 @@ given type object has a specified feature.
|
|||
/* Track types initialized using _PyStaticType_InitBuiltin(). */
|
||||
#define _Py_TPFLAGS_STATIC_BUILTIN (1 << 1)
|
||||
|
||||
/* The values array is placed inline directly after the rest of
|
||||
* the object. Implies Py_TPFLAGS_HAVE_GC.
|
||||
*/
|
||||
#define Py_TPFLAGS_INLINE_VALUES (1 << 2)
|
||||
|
||||
/* Placement of weakref pointers are managed by the VM, not by the type.
|
||||
* The VM will automatically set tp_weaklistoffset.
|
||||
*/
|
||||
#define Py_TPFLAGS_MANAGED_WEAKREF (1 << 3)
|
||||
|
||||
/* Placement of dict (and values) pointers are managed by the VM, not by the type.
|
||||
* The VM will automatically set tp_dictoffset.
|
||||
* The VM will automatically set tp_dictoffset. Implies Py_TPFLAGS_HAVE_GC.
|
||||
*/
|
||||
#define Py_TPFLAGS_MANAGED_DICT (1 << 4)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue