Skip to content

Commit 4b0ef08

Browse files
committed
Revert changes to nogil flags
1 parent b1edb96 commit 4b0ef08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/internal/pycore_object.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ PyAPI_FUNC(int) _PyObject_IsFreed(PyObject *);
7373
#define _PyObject_HEAD_INIT(type) \
7474
{ \
7575
.ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL, \
76-
.ob_flags = _Py_STATIC_FLAG_BITS, \
76+
.ob_flags = _Py_STATICALLY_ALLOCATED_FLAG, \
7777
.ob_gc_bits = _PyGC_BITS_DEFERRED, \
7878
.ob_type = (type) \
7979
}

Include/object.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ whose size is determined when the object is allocated.
7171
#define PyObject_HEAD_INIT(type) \
7272
{ \
7373
0, \
74-
_Py_STATIC_FLAG_BITS, \
74+
_Py_STATIC_IMMORTAL_INITIAL_REFCNT, \
7575
{ 0 }, \
7676
0, \
7777
_Py_IMMORTAL_REFCNT_LOCAL, \

0 commit comments

Comments
 (0)