Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 12305:a19bea467577
7163191: G1: introduce a "heap spanning table" abstraction
Summary: Add G1BiasedArray<T> that is an array where each element represents a fixed-sized subdivision of the heap. Use this abstraction to refactor the HeapRegionSeq class.
Reviewed-by: brutisso
author | tschatzl |
---|---|
date | Wed, 25 Sep 2013 13:25:24 +0200 |
parents | 40136aa2cdb1 |
children | a5ac0873476c c319b188c7b2 |
comparison
equal
deleted
inserted
replaced
12304:10cc3b624f8f | 12305:a19bea467577 |
---|---|
2067 g1_rs.size()/HeapWordSize); | 2067 g1_rs.size()/HeapWordSize); |
2068 | 2068 |
2069 _g1_storage.initialize(g1_rs, 0); | 2069 _g1_storage.initialize(g1_rs, 0); |
2070 _g1_committed = MemRegion((HeapWord*)_g1_storage.low(), (size_t) 0); | 2070 _g1_committed = MemRegion((HeapWord*)_g1_storage.low(), (size_t) 0); |
2071 _hrs.initialize((HeapWord*) _g1_reserved.start(), | 2071 _hrs.initialize((HeapWord*) _g1_reserved.start(), |
2072 (HeapWord*) _g1_reserved.end(), | 2072 (HeapWord*) _g1_reserved.end()); |
2073 _expansion_regions); | 2073 assert(_hrs.max_length() == _expansion_regions, |
2074 err_msg("max length: %u expansion regions: %u", | |
2075 _hrs.max_length(), _expansion_regions)); | |
2074 | 2076 |
2075 // Do later initialization work for concurrent refinement. | 2077 // Do later initialization work for concurrent refinement. |
2076 _cg1r->init(); | 2078 _cg1r->init(); |
2077 | 2079 |
2078 // 6843694 - ensure that the maximum region index can fit | 2080 // 6843694 - ensure that the maximum region index can fit |