Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/genCollectedHeap.cpp @ 13059:46d7652b223c
8026853: Prepare GC code for collector policy regression fix
Summary: Cleanup related to the NewSize and MaxNewSize bugs
Reviewed-by: tschatzl, jcoomes, ehelin
author | jwilhelm |
---|---|
date | Mon, 21 Oct 2013 18:56:20 +0200 |
parents | 4c84d351cca9 |
children | 8f07aa079343 |
comparison
equal
deleted
inserted
replaced
13058:3aee6bc29547 | 13059:46d7652b223c |
---|---|
1051 for (int i = 0; i < _n_gens; i++) { | 1051 for (int i = 0; i < _n_gens; i++) { |
1052 _gens[i]->save_marks(); | 1052 _gens[i]->save_marks(); |
1053 } | 1053 } |
1054 } | 1054 } |
1055 | 1055 |
1056 void GenCollectedHeap::compute_new_generation_sizes(int collectedGen) { | |
1057 for (int i = 0; i <= collectedGen; i++) { | |
1058 _gens[i]->compute_new_size(); | |
1059 } | |
1060 } | |
1061 | |
1062 GenCollectedHeap* GenCollectedHeap::heap() { | 1056 GenCollectedHeap* GenCollectedHeap::heap() { |
1063 assert(_gch != NULL, "Uninitialized access to GenCollectedHeap::heap()"); | 1057 assert(_gch != NULL, "Uninitialized access to GenCollectedHeap::heap()"); |
1064 assert(_gch->kind() == CollectedHeap::GenCollectedHeap, "not a generational heap"); | 1058 assert(_gch->kind() == CollectedHeap::GenCollectedHeap, "not a generational heap"); |
1065 return _gch; | 1059 return _gch; |
1066 } | 1060 } |