Module mun_memory::gc
source · Structs
A
GcPtr
is what you interact with outside of the allocator. It is a pointer to a piece of
memory that points to the actual data stored in memory.A
GcPtr
that automatically roots and unroots its internal GcPtr
.Implements a simple mark-sweep type garbage collector.
A default implementation of an
Observer
which ensures that the compiler does not generate
code for event handling.Contains stats about the current state of a GC implementation
Enums
An
Event
is an event that can be emitted by a GcRuntime
through the use of an Observer
.
This enables tracking of the runtimes behavior which is useful for testing.Traits
A trait used to iterate over array elements
An object that can be used to allocate and collect memory.
The
Observer
trait allows receiving of Event
s.A trait used to trace an object type.
Type Definitions
A
RawGcPtr
is an unsafe version of a GcPtr
. It represents the raw internal pointer
semantics used by the runtime.