--- old/src/share/vm/gc/shared/collectorPolicy.cpp 2015-05-28 00:57:50.000000000 +0200 +++ new/src/share/vm/gc/shared/collectorPolicy.cpp 2015-05-28 00:57:50.000000000 +0200 @@ -750,7 +750,7 @@ false /* clear_all_soft_refs */, size /* size */, is_tlab /* is_tlab */, - number_of_generations() - 1 /* max_level */); + Generation::Old /* max_generation */); } else { if (Verbose && PrintGCDetails) { gclog_or_tty->print(" :: Trying full because partial may fail :: "); @@ -763,7 +763,7 @@ false /* clear_all_soft_refs */, size /* size */, is_tlab /* is_tlab */, - number_of_generations() - 1 /* max_level */); + Generation::Old /* max_generation */); } result = gch->attempt_allocation(size, is_tlab, false /*first_only*/); @@ -791,7 +791,7 @@ true /* clear_all_soft_refs */, size /* size */, is_tlab /* is_tlab */, - number_of_generations() - 1 /* max_level */); + Generation::Old /* max_generation */); } result = gch->attempt_allocation(size, is_tlab, false /* first_only */);