Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.cpp @ 393:078b8a0d8d7c
6758633: G1: SEGV with GCOld on Linux
Summary: Avoid growth of a GrowableArray backend of HeapRegionSeq.
Reviewed-by: tonyp, jcoomes
author | iveresov |
---|---|
date | Mon, 13 Oct 2008 21:41:42 -0700 |
parents | cc68c8e9b309 |
children | c96030fff130 |
comparison
equal
deleted
inserted
replaced
392:05366dad12cf | 393:078b8a0d8d7c |
---|---|
1396 _perm_gen = pgs->init(perm_gen_rs, pgs->init_size(), rem_set()); | 1396 _perm_gen = pgs->init(perm_gen_rs, pgs->init_size(), rem_set()); |
1397 | 1397 |
1398 _g1_storage.initialize(g1_rs, 0); | 1398 _g1_storage.initialize(g1_rs, 0); |
1399 _g1_committed = MemRegion((HeapWord*)_g1_storage.low(), (size_t) 0); | 1399 _g1_committed = MemRegion((HeapWord*)_g1_storage.low(), (size_t) 0); |
1400 _g1_max_committed = _g1_committed; | 1400 _g1_max_committed = _g1_committed; |
1401 _hrs = new HeapRegionSeq(); | 1401 _hrs = new HeapRegionSeq(_expansion_regions); |
1402 guarantee(_hrs != NULL, "Couldn't allocate HeapRegionSeq"); | 1402 guarantee(_hrs != NULL, "Couldn't allocate HeapRegionSeq"); |
1403 guarantee(_cur_alloc_region == NULL, "from constructor"); | 1403 guarantee(_cur_alloc_region == NULL, "from constructor"); |
1404 | 1404 |
1405 _bot_shared = new G1BlockOffsetSharedArray(_reserved, | 1405 _bot_shared = new G1BlockOffsetSharedArray(_reserved, |
1406 heap_word_size(init_byte_size)); | 1406 heap_word_size(init_byte_size)); |