Function mmtk::memory_manager::add_finalizer [−][src]
pub fn add_finalizer<VM: VMBinding>(
mmtk: &'static MMTK<VM>,
object: ObjectReference
)
Register a finalizable object. MMTk will retain the liveness of the object even if it is not reachable from the program. Note that finalization upon exit is not supported.
Arguments:
mmtk
: A reference to an MMTk instanceobject
: The object that has a finalizer