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 cb357f9 commit 48a244dCopy full SHA for 48a244d
Objects/object.c
@@ -2930,6 +2930,7 @@ Py_ReprLeave(PyObject *obj)
2930
2931
/* Trashcan support. */
2932
2933
+#ifndef Py_GIL_DISABLED
2934
/* We need to store a pointer in the refcount field of
2935
* an object. It is important that we never store 0 (NULL).
2936
* It is also important to not make the object appear immortal,
@@ -2954,6 +2955,7 @@ safe_refcount_to_pointer(uintptr_t refcnt)
2954
2955
}
2956
return (void *)(refcnt - 2);
2957
2958
+#endif
2959
2960
/* Add op to the gcstate->trash_delete_later list. Called when the current
2961
* call-stack depth gets large. op must be a currently untracked gc'ed
0 commit comments