Example #1
0
bool newSpace::scavenge_contents() {
  if (objs_top == objs_scavenge_point) return false;
  assert(objs_scavenge_point < objs_top, "scavenging past top");

  oop *so_far = objs_scavenge_point; // for performance

  do {
    SCAVENGE_TEMPLATE(so_far); // advances objs_top when an object is moved
  } while (++so_far < objs_top);

  objs_scavenge_point = so_far;
  return true;
}
Example #2
0
void NMethodLookupKey::scavenge_contents() {
    SCAVENGE_TEMPLATE(&_receiverMapOop);
    SCAVENGE_TEMPLATE(&_methodHolder_or_map);
    SCAVENGE_TEMPLATE(&selector);
    SCAVENGE_TEMPLATE(&delegatee);
}