Function mmtk::memory_manager::num_of_workers
source · pub fn num_of_workers<VM: VMBinding>(mmtk: &'static MMTK<VM>) -> usize
Expand description
Get the number of workers. MMTk spawns worker threads for the ‘threads’ defined in the options. So the number of workers is derived from the threads option. Note the feature single_worker overwrites the threads option, and force one worker thread.
Arguments:
mmtk
: A reference to an MMTk instance.