Exemple #1
0
 // Returns true if this object has been allocated since a
 // generation's "save_marks" call.
 virtual bool obj_allocated_since_save_marks(const oop obj) const {
   return (HeapWord*)obj >= saved_mark_word();
 }
Exemple #2
0
void HeapRegion::oop_before_save_marks_iterate(OopClosure* cl) {
  oops_in_mr_iterate(MemRegion(bottom(), saved_mark_word()), cl);
}
Exemple #3
0
 // Returns a region that is guaranteed to contain (at least) all objects
 // allocated at the time of the last call to "save_marks".  If the space
 // initializes its DirtyCardToOopClosure's specifying the "contig" option
 // (that is, if the space is contiguous), then this region must contain only
 // such objects: the memregion will be from the bottom of the region to the
 // saved mark.  Otherwise, the "obj_allocated_since_save_marks" method of
 // the space must distinguish between objects in the region allocated before
 // and after the call to save marks.
 MemRegion used_region_at_save_marks() const {
   return MemRegion(bottom(), saved_mark_word());
 }