We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 155c44b commit 490cf8dCopy full SHA for 490cf8d
Include/refcount.h
@@ -294,7 +294,7 @@ static inline Py_ALWAYS_INLINE void Py_INCREF(PyObject *op)
294
}
295
op->ob_refcnt = cur_refcnt + 1;
296
#else
297
- if (_Py_IsImmortal(op)) {
+ if (op->ob_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) {
298
_Py_INCREF_IMMORTAL_STAT_INC();
299
return;
300
0 commit comments