src/share/vm/gc_implementation/shared/immutableSpace.cpp
Print this page
rev 6796 : [mq]: templateOopIterate
*** 44,54 ****
void ImmutableSpace::oop_iterate(ExtendedOopClosure* cl) {
HeapWord* obj_addr = bottom();
HeapWord* t = end();
// Could call objects iterate, but this is easier.
while (obj_addr < t) {
! obj_addr += oop(obj_addr)->oop_iterate(cl);
}
}
void ImmutableSpace::object_iterate(ObjectClosure* cl) {
HeapWord* p = bottom();
--- 44,54 ----
void ImmutableSpace::oop_iterate(ExtendedOopClosure* cl) {
HeapWord* obj_addr = bottom();
HeapWord* t = end();
// Could call objects iterate, but this is easier.
while (obj_addr < t) {
! obj_addr += oop(obj_addr)->oop_iterate<false>(cl);
}
}
void ImmutableSpace::object_iterate(ObjectClosure* cl) {
HeapWord* p = bottom();