Skip to content

Commit 8e53a2e

Browse files
committed
Fixup comment
1 parent 9ec47b3 commit 8e53a2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/_testcapi/object.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ test_py_try_inc_ref(PyObject *self, PyObject *unused)
168168

169169
PyUnstable_EnableTryIncRef(op);
170170
#ifdef Py_GIL_DISABLED
171-
// PyUnstable_EnableTryIncRef sets the shared flags to *at least*
171+
// PyUnstable_EnableTryIncRef sets the shared flags to
172+
// `_Py_REF_MAYBE_WEAKREF` if the flags are currently zero to ensure that
173+
// the shared reference count is merged on deallocation.
172174
assert((op->ob_ref_shared & _Py_REF_SHARED_FLAG_MASK) >= _Py_REF_MAYBE_WEAKREF);
173175
#endif
174176

0 commit comments

Comments
 (0)