Expand description
This module provides the trait Slot
and related traits and types which allow VMs to
customize the layout of slots and the behavior of loading and updating object references in
slots.
Structs§
- Iterate slots within
Range<Address>
. - A simple slot implementation that represents a word-sized slot which holds the raw address of an
ObjectReference
, or 0 if it is holding a null reference. - Memory slice type with empty implementations. For VMs that do not use the memory slice type.
- Slot iterator for
UnimplementedMemorySlice
.
Traits§
- A abstract memory slice represents a piece of heap memory which may contains many slots.
- A
Slot
represents a slot in an object (a.k.a. a field), on the stack (i.e. a local variable) or any other places (such as global variables). A slot may hold an object reference. We can load the object reference from it, and we can update the object reference in it after the GC moves the object.