src/hotspot/share/gc/shared/space.cpp
changeset 59153 1152339c298a
parent 58980 47c20fc6a517
child 59154 0c2e1808f800
equal deleted inserted replaced
59152:59272e9e0635 59153:1152339c298a
   496 void ContiguousSpace::object_iterate(ObjectClosure* blk) {
   496 void ContiguousSpace::object_iterate(ObjectClosure* blk) {
   497   if (is_empty()) return;
   497   if (is_empty()) return;
   498   object_iterate_from(bottom(), blk);
   498   object_iterate_from(bottom(), blk);
   499 }
   499 }
   500 
   500 
   501 // For a ContiguousSpace object_iterate() and safe_object_iterate()
       
   502 // are the same.
       
   503 void ContiguousSpace::safe_object_iterate(ObjectClosure* blk) {
       
   504   object_iterate(blk);
       
   505 }
       
   506 
       
   507 void ContiguousSpace::object_iterate_from(HeapWord* mark, ObjectClosure* blk) {
   501 void ContiguousSpace::object_iterate_from(HeapWord* mark, ObjectClosure* blk) {
   508   while (mark < top()) {
   502   while (mark < top()) {
   509     blk->do_object(oop(mark));
   503     blk->do_object(oop(mark));
   510     mark += oop(mark)->size();
   504     mark += oop(mark)->size();
   511   }
   505   }