src/hotspot/share/gc/g1/heapRegionManager.cpp
changeset 59220 72e15d757e6c
parent 59062 6530de931b8e
child 59252 623722a6aeb9
equal deleted inserted replaced
59219:01cc6bb2a090 59220:72e15d757e6c
   215     assert(is_available(i), "Just made region %u available but is apparently not.", i);
   215     assert(is_available(i), "Just made region %u available but is apparently not.", i);
   216     HeapRegion* hr = at(i);
   216     HeapRegion* hr = at(i);
   217     if (G1CollectedHeap::heap()->hr_printer()->is_active()) {
   217     if (G1CollectedHeap::heap()->hr_printer()->is_active()) {
   218       G1CollectedHeap::heap()->hr_printer()->commit(hr);
   218       G1CollectedHeap::heap()->hr_printer()->commit(hr);
   219     }
   219     }
   220     HeapWord* bottom = G1CollectedHeap::heap()->bottom_addr_for_region(i);
   220 
   221     MemRegion mr(bottom, bottom + HeapRegion::GrainWords);
   221     hr->initialize();
   222 
       
   223     hr->initialize(mr);
       
   224     hr->set_node_index(G1NUMA::numa()->index_for_region(hr));
   222     hr->set_node_index(G1NUMA::numa()->index_for_region(hr));
   225     insert_into_free_list(at(i));
   223     insert_into_free_list(at(i));
   226   }
   224   }
   227 }
   225 }
   228 
   226