Lines Matching defs:gc_refs
188 During a collection, _gc_prev is temporary used for gc_refs, and the gc list
191 gc_refs
193 to gc_refs, for each object in the generation being collected.
194 subtract_refs() then adjusts gc_refs so that it equals the number of
221 Objects that are found to be reachable have gc_refs set to 1.
415 /* Set all gc_refs = ob_refcnt. After this, gc_refs is > 0 and
454 /* We're only interested in gc_refs for objects in the
456 * because only they have positive gc_refs.
465 /* Subtract internal references from gc_refs. After this, gc_refs is >= 0
467 * objects not in containers. The ones with gc_refs > 0 are directly
493 const Py_ssize_t gc_refs = gc_get_refs(gc);
507 /* This had gc_refs = 0 when move_unreachable got
527 else if (gc_refs == 0) {
536 * If gc_refs > 0, it must be in move_unreachable's 'young'
540 _PyObject_ASSERT_WITH_MSG(op, gc_refs > 0, "refcount is too small");
749 * moved into `old` have gc_refs set to GC_REACHABLE; the objects remaining in
1094 /* Using ob_refcnt and gc_refs, calculate which objects in the
1099 update_refs(base); // gc_prev is used for gc_refs