< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp

Print this page

        

*** 1316,1326 **** obj->oop_iterate(&oops); } assert(oop_stack.is_empty(), "should be empty"); ! if (!_aux_bitmap_region_special && !os::uncommit_memory((char*)_aux_bitmap_region.start(), _aux_bitmap_region.byte_size())) { log_warning(gc)("Could not uncommit native memory for auxiliary marking bitmap for heap iteration"); } } // Keep alive an object that was loaded with AS_NO_KEEPALIVE. --- 1316,1326 ---- obj->oop_iterate(&oops); } assert(oop_stack.is_empty(), "should be empty"); ! if (!_aux_bitmap_region_special && !os::uncommit_memory((char*)_aux_bitmap_region.start(), _aux_bitmap_region.byte_size(), !ExecMem)) { log_warning(gc)("Could not uncommit native memory for auxiliary marking bitmap for heap iteration"); } } // Keep alive an object that was loaded with AS_NO_KEEPALIVE.
*** 2667,2677 **** // Uncommit the bitmap slice: size_t slice = r->index() / _bitmap_regions_per_slice; size_t off = _bitmap_bytes_per_slice * slice; size_t len = _bitmap_bytes_per_slice; ! if (!os::uncommit_memory((char*)_bitmap_region.start() + off, len)) { return false; } return true; } --- 2667,2677 ---- // Uncommit the bitmap slice: size_t slice = r->index() / _bitmap_regions_per_slice; size_t off = _bitmap_bytes_per_slice * slice; size_t len = _bitmap_bytes_per_slice; ! if (!os::uncommit_memory((char*)_bitmap_region.start() + off, len, !ExecMem)) { return false; } return true; }
< prev index next >