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

changeset 7651
c132be0fb74d
parent 7118
227a9e5e4b4a
child 7994
04ff2f6cd0eb
child 9327
f96fcd9e1e1b
     1.1 --- a/src/share/vm/gc_implementation/g1/g1AllocRegion.cpp	Wed Mar 25 15:50:17 2015 +0100
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1AllocRegion.cpp	Fri Dec 19 09:21:06 2014 +0100
     1.3 @@ -254,25 +254,23 @@
     1.4  HeapRegion* SurvivorGCAllocRegion::allocate_new_region(size_t word_size,
     1.5                                                         bool force) {
     1.6    assert(!force, "not supported for GC alloc regions");
     1.7 -  return _g1h->new_gc_alloc_region(word_size, count(), GCAllocForSurvived);
     1.8 +  return _g1h->new_gc_alloc_region(word_size, count(), InCSetState::Young);
     1.9  }
    1.10  
    1.11  void SurvivorGCAllocRegion::retire_region(HeapRegion* alloc_region,
    1.12                                            size_t allocated_bytes) {
    1.13 -  _g1h->retire_gc_alloc_region(alloc_region, allocated_bytes,
    1.14 -                               GCAllocForSurvived);
    1.15 +  _g1h->retire_gc_alloc_region(alloc_region, allocated_bytes, InCSetState::Young);
    1.16  }
    1.17  
    1.18  HeapRegion* OldGCAllocRegion::allocate_new_region(size_t word_size,
    1.19                                                    bool force) {
    1.20    assert(!force, "not supported for GC alloc regions");
    1.21 -  return _g1h->new_gc_alloc_region(word_size, count(), GCAllocForTenured);
    1.22 +  return _g1h->new_gc_alloc_region(word_size, count(), InCSetState::Old);
    1.23  }
    1.24  
    1.25  void OldGCAllocRegion::retire_region(HeapRegion* alloc_region,
    1.26                                       size_t allocated_bytes) {
    1.27 -  _g1h->retire_gc_alloc_region(alloc_region, allocated_bytes,
    1.28 -                               GCAllocForTenured);
    1.29 +  _g1h->retire_gc_alloc_region(alloc_region, allocated_bytes, InCSetState::Old);
    1.30  }
    1.31  
    1.32  HeapRegion* OldGCAllocRegion::release() {

mercurial