pub fn add_weak_candidate<VM: VMBinding>(mmtk: &MMTK<VM>, reff: ObjectReference)
Expand description

Add a reference to the list of weak 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 weak reference to add.