pub fn pin_object(object: ObjectReference) -> bool
Expand description

Pin an object. MMTk will make sure that the object does not move during GC. Note that action cannot happen in some plans, eg, semispace. It returns true if the pinning operation has been performed, i.e., the object status changed from non-pinned to pinned

Arguments:

  • object: The object to be pinned