Skip to main content

Module memory

Module memory 

Source
Expand description

Memory management for Shape VM

Without gc feature: stub using Arc reference counting (no-op GC). With gc feature: delegates to shape-gc’s GcHeap for real collection.

Structs§

GCConfig
Garbage collection configuration
GCResult
Result of a garbage collection
GCStats
Garbage collection statistics
GarbageCollector
Shape VM Garbage Collector

Functions§

record_heap_write
Record a heap write for barrier coverage tracking.
write_barrier_slot
Write barrier for GC-tracked heap writes (raw u64 bits).
write_barrier_vw
Write barrier for GC-tracked heap writes (ValueWord level).

Type Aliases§

ObjectId
Unique identifier for managed objects (legacy, kept for API compatibility)