Lines Matching defs:from
8 Based on a post on the python-dev list. Ideas from Guido van Rossum,
54 // move_unreachable() removes this flag from reachable objects.
195 times an object is referenced directly from outside the generation
218 indirectly) from outside the generation into an "unreachable" set and
226 move_legacy_finalizers() will remove this flag from "unreachable" set.
261 /* Remove `node` from the gc list it's currently in. */
274 /* Move `node` from the gc list it's currently in (which is not explicitly
281 /* Unlink from current list. */
296 /* append list `from` onto list `to`; `from` becomes an empty list */
298 gc_list_merge(PyGC_Head *from, PyGC_Head *to)
300 assert(from != to);
301 if (!gc_list_is_empty(from)) {
303 PyGC_Head *from_head = GC_NEXT(from);
304 PyGC_Head *from_tail = GC_PREV(from);
305 assert(from_head != from);
306 assert(from_tail != from);
314 gc_list_init(from);
435 * to remove the object from the doubly-linked list of all
465 /* Subtract internal references from gc_refs. After this, gc_refs is >= 0
468 * reachable from outside containers, and so can't be collected.
513 // Manually unlink gc from unreachable list because the list functions
545 /* Move the unreachable objects from young to unreachable. After this,
549 * from outside the original young; and all objects in unreachable are
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
575 /* gc is definitely reachable from outside the
578 * be directly reachable from it. Note that the
600 * assume it is. gc isn't directly reachable from
602 * reachable from an object we haven't gotten to yet.
670 * from _gc_next in unreachable.
725 /* Move objects that are reachable from finalizers, from the unreachable set
831 * cyclic trash (CT), then although the CT is unreachable from
832 * outside the current generation, CT may be reachable from the
844 * nothing in CT is reachable from the callback either, so it's hard
896 * The callback removes this key->weakref mapping from the
921 * only from such cycles).
951 * Note that this may remove some (or even all) of the objects from the
965 * If objects vanish from the `collectable` and `seen` lists we don't
1064 /* Deduce which objects among "base" are unreachable from outside the list
1072 objects that can be reached directly from outside must have strictly positive
1095 * container set are reachable from outside the set (i.e., have a
1102 /* Leave everything reachable from outside base in base, and move
1113 * reachable from outside, then the adjusted refcounts will be 0, 0, and 1
1126 * reversed from the original order. On all _subsequent_ scans, none of
1160 // Remove the PREV_MASK_COLLECTING from unreachable
1188 PyGC_Head finalizers; /* objects with, & reachable from, __del__ */
1244 /* All objects in unreachable are trash, but objects reachable from
1252 * unreachable objects reachable *from* those are also uncollectable,
1739 Generation to extract the objects from.
1788 /* If generation is not passed or None, get all objects from all generations */
2066 /* Public API to invoke gc.collect() from C */