comparison src/share/vm/memory/space.cpp @ 517:e9be0e04635a

6689653: JMapPerm fails with UseConcMarkSweepIncGC and compressed oops off Summary: Added safe_object_iterate() for use by JMapPerm. Reviewed-by: tonyp
author jmasa
date Tue, 06 Jan 2009 07:05:05 -0800
parents 7d7a7c599c17
children 0af8b0718fc9
comparison
equal deleted inserted replaced
500:ca7d48236048 517:e9be0e04635a
703 if (is_empty()) return; 703 if (is_empty()) return;
704 WaterMark bm = bottom_mark(); 704 WaterMark bm = bottom_mark();
705 object_iterate_from(bm, blk); 705 object_iterate_from(bm, blk);
706 } 706 }
707 707
708 // For a continguous space object_iterate() and safe_object_iterate()
709 // are the same.
710 void ContiguousSpace::safe_object_iterate(ObjectClosure* blk) {
711 object_iterate(blk);
712 }
713
708 void ContiguousSpace::object_iterate_from(WaterMark mark, ObjectClosure* blk) { 714 void ContiguousSpace::object_iterate_from(WaterMark mark, ObjectClosure* blk) {
709 assert(mark.space() == this, "Mark does not match space"); 715 assert(mark.space() == this, "Mark does not match space");
710 HeapWord* p = mark.point(); 716 HeapWord* p = mark.point();
711 while (p < top()) { 717 while (p < top()) {
712 blk->do_object(oop(p)); 718 blk->do_object(oop(p));