Skip to content

Commit

Permalink
Revert changes to nogil flags
Browse files Browse the repository at this point in the history
  • Loading branch information
markshannon committed Feb 25, 2025
1 parent b1edb96 commit 4b0ef08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Include/internal/pycore_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ PyAPI_FUNC(int) _PyObject_IsFreed(PyObject *);
#define _PyObject_HEAD_INIT(type) \
{ \
.ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL, \
.ob_flags = _Py_STATIC_FLAG_BITS, \
.ob_flags = _Py_STATICALLY_ALLOCATED_FLAG, \
.ob_gc_bits = _PyGC_BITS_DEFERRED, \
.ob_type = (type) \
}
Expand Down
2 changes: 1 addition & 1 deletion Include/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ whose size is determined when the object is allocated.
#define PyObject_HEAD_INIT(type) \
{ \
0, \
_Py_STATIC_FLAG_BITS, \
_Py_STATIC_IMMORTAL_INITIAL_REFCNT, \
{ 0 }, \
0, \
_Py_IMMORTAL_REFCNT_LOCAL, \
Expand Down

0 comments on commit 4b0ef08

Please sign in to comment.