8075635: Remove GenerationSpec array

Replaced the array with explicit variables for young and old

Reviewed-by: kbarrett, mgerdin
This commit is contained in:
Jesper Wilhelmsson 2015-03-16 13:28:27 +01:00
parent 0a05ebc7f7
commit 2c63bc9175
11 changed files with 72 additions and 77 deletions

View file

@ -380,7 +380,7 @@ void DefNewGeneration::compute_new_size() {
int next_level = level() + 1;
GenCollectedHeap* gch = GenCollectedHeap::heap();
assert(next_level < gch->_n_gens,
assert(next_level < gch->n_gens(),
"DefNewGeneration cannot be an oldest gen");
Generation* old_gen = gch->old_gen();