File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -297,15 +297,17 @@ _Py_DecRef(PyObject *o)
297
297
}
298
298
299
299
#ifdef Py_NOGIL
300
+ # ifdef Py_REF_DEBUG
300
301
static inline int
301
302
is_shared_refcnt_dead (Py_ssize_t shared )
302
303
{
303
- #if SIZEOF_SIZE_T == 8
304
+ # if SIZEOF_SIZE_T == 8
304
305
return shared == (Py_ssize_t )0xDDDDDDDDDDDDDDDD ;
305
- #else
306
+ # else
306
307
return shared == (Py_ssize_t )0xDDDDDDDD ;
307
- #endif
308
+ # endif
308
309
}
310
+ # endif
309
311
310
312
void
311
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 ;
414
416
}
415
- #endif
417
+ #endif /* Py_NOGIL */
416
418
417
419
418
420
/**************************************/
You can’t perform that action at this time.
0 commit comments