Skip to main content

Module roots

Module roots 

Source
Expand description

Root scanning infrastructure for the GC.

The Trace trait is implemented by types that contain GC-managed pointers. During the mark phase, the GC calls trace() on root objects to discover all reachable heap pointers.

Traits§

Trace
Trait for types that can be traced by the GC.

Functions§

trace_heap_slot
Trace a raw u64 that may be a heap pointer (for ValueSlot).
trace_nanboxed_bits
Trace a NaN-boxed u64 value: if it’s heap-tagged, yield the raw pointer.

Type Aliases§

TraceCallback
Callback type for tracing — accepts raw pointers to GC-managed objects.