Home | History | Annotate | Download | only in python2.7

Lines Matching refs:gc

171    vrbl-size object with nitems items, exclusive of gc overhead (if any).  The
234 /* C equivalent of gc.collect(). */
237 /* Test if a type has a GC head */
240 /* Test if an object has a GC head */
251 /* GC information is stored BEFORE the object structure. */
257 } gc;
275 /* Tell the GC to track this object. NB: While the object is tracked the
279 if (g->gc.gc_refs != _PyGC_REFS_UNTRACKED) \
280 Py_FatalError("GC object already tracked"); \
281 g->gc.gc_refs = _PyGC_REFS_REACHABLE; \
282 g->gc.gc_next = _PyGC_generation0; \
283 g->gc.gc_prev = _PyGC_generation0->gc.gc_prev; \
284 g->gc.gc_prev->gc.gc_next = g; \
285 _PyGC_generation0->gc.gc_prev = g; \
288 /* Tell the GC to stop tracking this object.
294 assert(g->gc.gc_refs != _PyGC_REFS_UNTRACKED); \
295 g->gc.gc_refs = _PyGC_REFS_UNTRACKED; \
296 g->gc.gc_prev->gc.gc_next = g->gc.gc_next; \
297 g->gc.gc_next->gc.gc_prev = g->gc.gc_prev; \
298 g->gc.gc_next = NULL; \
301 /* True if the object is currently tracked by the GC. */
303 ((_Py_AS_GC(o))->gc.gc_refs != _PyGC_REFS_UNTRACKED)
305 /* True if the object may be tracked by the GC in the future, or already is.
340 * use the old GC API will still compile but the objects will not be
341 * tracked by the GC. */