equal
deleted
inserted
replaced
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 } |