We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_shared_refcnt_dead
1 parent ae8116c commit fa84e5fCopy full SHA for fa84e5f
Objects/object.c
@@ -297,15 +297,17 @@ _Py_DecRef(PyObject *o)
297
}
298
299
#ifdef Py_NOGIL
300
+# ifdef Py_REF_DEBUG
301
static inline int
302
is_shared_refcnt_dead(Py_ssize_t shared)
303
{
-#if SIZEOF_SIZE_T == 8
304
+# if SIZEOF_SIZE_T == 8
305
return shared == (Py_ssize_t)0xDDDDDDDDDDDDDDDD;
-#else
306
+# else
307
return shared == (Py_ssize_t)0xDDDDDDDD;
-#endif
308
+# endif
309
310
311
312
void
313
_Py_DecRefSharedDebug(PyObject *o, const char *filename, int lineno)
@@ -412,7 +414,7 @@ _Py_ExplicitMergeRefcount(PyObject *op, Py_ssize_t extra)
412
414
_Py_atomic_store_uintptr_relaxed(&op->ob_tid, 0);
413
415
return refcnt;
416
417
+#endif /* Py_NOGIL */
418
419
420
/**************************************/
0 commit comments