equal
deleted
inserted
replaced
1322 if (!_aux_bitmap_region_special && !os::uncommit_memory((char*)_aux_bitmap_region.start(), _aux_bitmap_region.byte_size())) { |
1322 if (!_aux_bitmap_region_special && !os::uncommit_memory((char*)_aux_bitmap_region.start(), _aux_bitmap_region.byte_size())) { |
1323 log_warning(gc)("Could not uncommit native memory for auxiliary marking bitmap for heap iteration"); |
1323 log_warning(gc)("Could not uncommit native memory for auxiliary marking bitmap for heap iteration"); |
1324 } |
1324 } |
1325 } |
1325 } |
1326 |
1326 |
1327 void ShenandoahHeap::safe_object_iterate(ObjectClosure* cl) { |
|
1328 assert(SafepointSynchronize::is_at_safepoint(), "safe iteration is only available during safepoints"); |
|
1329 object_iterate(cl); |
|
1330 } |
|
1331 |
|
1332 void ShenandoahHeap::heap_region_iterate(ShenandoahHeapRegionClosure* blk) const { |
1327 void ShenandoahHeap::heap_region_iterate(ShenandoahHeapRegionClosure* blk) const { |
1333 for (size_t i = 0; i < num_regions(); i++) { |
1328 for (size_t i = 0; i < num_regions(); i++) { |
1334 ShenandoahHeapRegion* current = get_region(i); |
1329 ShenandoahHeapRegion* current = get_region(i); |
1335 blk->heap_region_do(current); |
1330 blk->heap_region_do(current); |
1336 } |
1331 } |