Lines Matching refs:gc_refs
213 #define IS_TRACKED(o) ((AS_GC(o))->gc.gc_refs != GC_UNTRACKED)
214 #define IS_REACHABLE(o) ((AS_GC(o))->gc.gc_refs == GC_REACHABLE)
216 (AS_GC(o))->gc.gc_refs == GC_TENTATIVELY_UNREACHABLE)
331 assert(gc->gc.gc_refs == GC_REACHABLE); in update_refs()
332 gc->gc.gc_refs = Py_REFCNT(FROM_GC(gc)); in update_refs()
351 assert(gc->gc.gc_refs != 0); in update_refs()
366 assert(gc->gc.gc_refs != 0); /* else refcount was too small */ in visit_decref()
367 if (gc->gc.gc_refs > 0) in visit_decref()
368 gc->gc.gc_refs--; in visit_decref()
397 const Py_ssize_t gc_refs = gc->gc.gc_refs; in visit_reachable() local
399 if (gc_refs == 0) { in visit_reachable()
405 gc->gc.gc_refs = 1; in visit_reachable()
407 else if (gc_refs == GC_TENTATIVELY_UNREACHABLE) { in visit_reachable()
415 gc->gc.gc_refs = 1; in visit_reachable()
426 assert(gc_refs > 0 in visit_reachable()
427 || gc_refs == GC_REACHABLE in visit_reachable()
428 || gc_refs == GC_UNTRACKED); in visit_reachable()
459 if (gc->gc.gc_refs) { in move_unreachable()
470 assert(gc->gc.gc_refs > 0); in move_unreachable()
471 gc->gc.gc_refs = GC_REACHABLE; in move_unreachable()
490 gc->gc.gc_refs = GC_TENTATIVELY_UNREACHABLE; in move_unreachable()
553 gc->gc.gc_refs = GC_REACHABLE; in move_finalizers()
566 gc->gc.gc_refs = GC_REACHABLE; in visit_move()
824 gc->gc.gc_refs = GC_REACHABLE; in delete_garbage()
1503 g->gc.gc_refs = GC_UNTRACKED; in _PyObject_GC_Malloc()