Function mmtk::memory_manager::add_phantom_candidate
source · pub fn add_phantom_candidate<VM: VMBinding>(
mmtk: &MMTK<VM>,
reff: ObjectReference
)
Expand description
Add a reference to the list of phantom 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 phantom reference to add.