mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Make _PyObject_GC_UnTrack do nothing if WITH_CYCLE_GC is not defined.
This commit is contained in:
parent
95b62a6dd4
commit
b883310d59
1 changed files with 2 additions and 0 deletions
|
|
@ -819,9 +819,11 @@ _PyObject_GC_Track(PyObject *op)
|
||||||
void
|
void
|
||||||
_PyObject_GC_UnTrack(PyObject *op)
|
_PyObject_GC_UnTrack(PyObject *op)
|
||||||
{
|
{
|
||||||
|
#ifdef WITH_CYCLE_GC
|
||||||
PyGC_Head *gc = AS_GC(op);
|
PyGC_Head *gc = AS_GC(op);
|
||||||
if (gc->gc.gc_next != NULL)
|
if (gc->gc.gc_next != NULL)
|
||||||
_PyObject_GC_UNTRACK(op);
|
_PyObject_GC_UNTRACK(op);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
PyObject *
|
PyObject *
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue