Lines Matching defs:young
497 // move_unreachable's scan of the 'young' list - they've already been
509 * Move it back to move_unreachable's 'young' list,
528 /* This is in move_unreachable's 'young' list, but
536 * If gc_refs > 0, it must be in move_unreachable's 'young'
545 /* Move the unreachable objects from young to unreachable. After this,
546 * all objects in young don't have PREV_MASK_COLLECTING flag and
548 * All objects in young after this are directly or indirectly reachable
549 * from outside the original young; and all objects in unreachable are
552 * This function restores _gc_prev pointer. young and unreachable are
558 move_unreachable(PyGC_Head *young, PyGC_Head *unreachable)
560 // previous elem in the young list, used for restore gc_prev.
561 PyGC_Head *prev = young;
562 PyGC_Head *gc = GC_NEXT(young);
564 /* Invariants: all objects "to the left" of us in young are reachable
565 * (directly or indirectly) from outside the young list as it was at entry.
567 * All other objects from the original young "to the left" of us are in
569 * left of us in 'young' now have been scanned, and no objects here
573 while (gc != young) {
576 * original 'young'. Mark it as such, and traverse
579 * call to tp_traverse may append objects to young,
588 // young->_gc_prev == gc. Don't do gc = GC_NEXT(gc) before!
591 (void *)young);
604 * young if that's so, and we'll see it again.
625 // young->_gc_prev must be last element remained in the list.
626 young->_gc_prev = (uintptr_t)prev;
1111 * Suppose we create objects A, B, C in that order. They appear in the young
1185 PyGC_Head *young; /* the generation we are examining */
1219 young = GEN_HEAD(gcstate, generation);
1223 old = young;
1226 deduce_unreachable(young, &unreachable);
1228 untrack_tuples(young);
1230 if (young != old) {
1232 gcstate->long_lived_pending += gc_list_size(young);
1234 gc_list_merge(young, old);
1239 untrack_dicts(young);
1241 gcstate->long_lived_total = gc_list_size(young);
1432 the young and middle generations) will always examine roughly the same