Function mmtk::memory_manager::add_soft_candidate
source · pub fn add_soft_candidate<VM: VMBinding>(mmtk: &MMTK<VM>, reff: ObjectReference)
Expand description
Add a reference to the list of soft references. A binding may call this either when a weak reference is created, or when a weak reference is traced during GC.
Arguments:
mmtk
: A reference to an MMTk instance.reff
: The soft reference to add.