We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e24771b commit 9338eeaCopy full SHA for 9338eea
Include/internal/pycore_object.h
@@ -58,6 +58,9 @@ extern void _Py_DecRefTotal(PyInterpreterState *);
58
// Increment reference count by n
59
static inline void _Py_RefcntAdd(PyObject* op, Py_ssize_t n)
60
{
61
+ if (_Py_IsImmortal(op)) {
62
+ return;
63
+ }
64
#ifdef Py_REF_DEBUG
65
_Py_AddRefTotal(_PyInterpreterState_GET(), n);
66
#endif
0 commit comments