Function mmtk::memory_manager::gc_init[][src]

pub fn gc_init<VM: VMBinding>(mmtk: &'static mut MMTK<VM>, heap_size: usize)

Initialize an MMTk instance. A VM should call this method after creating an MMTK instance but before using any of the methods provided in MMTk. This method will attempt to initialize a logger. If the VM would like to use its own logger, it should initialize the logger before calling this method.

Arguments:

  • mmtk: A reference to an MMTk instance to initialize.
  • heap_size: The heap size for the MMTk instance in bytes.