< prev index next >
src/hotspot/share/gc/shared/space.cpp
Print this page
*** 496,511 ****
void ContiguousSpace::object_iterate(ObjectClosure* blk) {
if (is_empty()) return;
object_iterate_from(bottom(), blk);
}
- // For a ContiguousSpace object_iterate() and safe_object_iterate()
- // are the same.
- void ContiguousSpace::safe_object_iterate(ObjectClosure* blk) {
- object_iterate(blk);
- }
-
void ContiguousSpace::object_iterate_from(HeapWord* mark, ObjectClosure* blk) {
while (mark < top()) {
blk->do_object(oop(mark));
mark += oop(mark)->size();
}
--- 496,505 ----
< prev index next >