Skip to content

Commit 3e203b4

Browse files
committed
fix tests
1 parent 176f6a8 commit 3e203b4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Include/internal/pycore_object.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@ _Py_DECREF_SPECIALIZED(PyObject *op, const destructor destruct)
256256
static inline void
257257
_Py_DECREF_SPECIALIZED(PyObject *op, const destructor destruct)
258258
{
259+
#ifdef Py_REF_DEBUG
260+
Py_DECREF(op);
261+
#else
259262
uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
260263
if (local == _Py_IMMORTAL_REFCNT_LOCAL) {
261264
_Py_DECREF_IMMORTAL_STAT_INC();
@@ -272,6 +275,7 @@ _Py_DECREF_SPECIALIZED(PyObject *op, const destructor destruct)
272275
else {
273276
_Py_DecRefShared(op);
274277
}
278+
#endif
275279
}
276280

277281
static inline int

0 commit comments

Comments
 (0)