equal
deleted
inserted
replaced
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 |