Skip to main content

Module gc

Module gc 

Source
Expand description

Garbage collection: drop objects unreachable from any ref.

Conservative by design — plan only reports what is unreferenced; objects are removed only when prune is explicitly requested.

Structs§

GcPlan
What GC found: the unreferenced objects in each category.

Functions§

plan
Compute which stored objects are unreferenced.
prune
Delete every object named in plan. Returns the number removed.