pub fn get_all_finalizers<VM: VMBinding>(
    mmtk: &'static MMTK<VM>
) -> Vec<<VM::VMReferenceGlue as ReferenceGlue<VM>>::FinalizableType>
Expand description

Pop all the finalizers that were registered for finalization. The returned objects may or may not be ready for finalization. After this call, MMTk’s finalizer processor should have no registered finalizer any more.

This is useful for some VMs which require all finalizable objects to be finalized on exit.

Arguments:

  • mmtk: A reference to an MMTk instance.