We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1edb96 commit 4b0ef08Copy full SHA for 4b0ef08
Include/internal/pycore_object.h
@@ -73,7 +73,7 @@ PyAPI_FUNC(int) _PyObject_IsFreed(PyObject *);
73
#define _PyObject_HEAD_INIT(type) \
74
{ \
75
.ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL, \
76
- .ob_flags = _Py_STATIC_FLAG_BITS, \
+ .ob_flags = _Py_STATICALLY_ALLOCATED_FLAG, \
77
.ob_gc_bits = _PyGC_BITS_DEFERRED, \
78
.ob_type = (type) \
79
}
Include/object.h
@@ -71,7 +71,7 @@ whose size is determined when the object is allocated.
71
#define PyObject_HEAD_INIT(type) \
72
0, \
- _Py_STATIC_FLAG_BITS, \
+ _Py_STATIC_IMMORTAL_INITIAL_REFCNT, \
{ 0 }, \
_Py_IMMORTAL_REFCNT_LOCAL, \
0 commit comments