Module mun_memory::gc[][src]

Structs

GcPtr

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.

GcRootPtr

A GcPtr that automatically roots and unroots its internal GcPtr.

MarkSweep

Implements a simple mark-sweep type garbage collector.

NoopObserver

A default implementation of an Observer which ensures that the compiler does not generate code for event handling.

Stats

Contains stats about the current state of a GC implementation

Enums

Event

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

GcRuntime

An object that can be used to allocate and collect memory.

HasIndirectionPtr
Observer

The Observer trait allows receiving of Events.

TypeTrace

A trait used to trace an object type.

Type Definitions

RawGcPtr

A RawGcPtr is an unsafe version of a GcPtr. It represents the raw internal pointer semantics used by the runtime.