src/share/vm/gc_implementation/g1/heapRegionManager.cpp

changeset 7131
d35872270666
parent 7096
b1266b08b994
child 7535
7ae4e26cb1e0
child 7835
e5406a79ae90
     1.1 --- a/src/share/vm/gc_implementation/g1/heapRegionManager.cpp	Mon Sep 08 14:13:01 2014 +0000
     1.2 +++ b/src/share/vm/gc_implementation/g1/heapRegionManager.cpp	Tue Sep 09 00:05:25 2014 +0200
     1.3 @@ -66,10 +66,11 @@
     1.4  #endif
     1.5  
     1.6  HeapRegion* HeapRegionManager::new_heap_region(uint hrm_index) {
     1.7 -  HeapWord* bottom = G1CollectedHeap::heap()->bottom_addr_for_region(hrm_index);
     1.8 +  G1CollectedHeap* g1h = G1CollectedHeap::heap();
     1.9 +  HeapWord* bottom = g1h->bottom_addr_for_region(hrm_index);
    1.10    MemRegion mr(bottom, bottom + HeapRegion::GrainWords);
    1.11    assert(reserved().contains(mr), "invariant");
    1.12 -  return new HeapRegion(hrm_index, G1CollectedHeap::heap()->bot_shared(), mr);
    1.13 +  return g1h->allocator()->new_heap_region(hrm_index, g1h->bot_shared(), mr);
    1.14  }
    1.15  
    1.16  void HeapRegionManager::commit_regions(uint index, size_t num_regions) {

mercurial