--- old/src/share/vm/memory/collectorPolicy.cpp 2014-10-17 16:10:00.000000000 +0200 +++ new/src/share/vm/memory/collectorPolicy.cpp 2014-10-17 16:10:00.000000000 +0200 @@ -751,7 +751,7 @@ false /* clear_all_soft_refs */, size /* size */, is_tlab /* is_tlab */, - number_of_generations() - 1 /* max_level */); + Generation::Old /* max_gen */); } else { if (Verbose && PrintGCDetails) { gclog_or_tty->print(" :: Trying full because partial may fail :: "); @@ -764,7 +764,7 @@ false /* clear_all_soft_refs */, size /* size */, is_tlab /* is_tlab */, - number_of_generations() - 1 /* max_level */); + Generation::Old /* max_gen */); } result = gch->attempt_allocation(size, is_tlab, false /*first_only*/); @@ -792,7 +792,7 @@ true /* clear_all_soft_refs */, size /* size */, is_tlab /* is_tlab */, - number_of_generations() - 1 /* max_level */); + Generation::Old /* max_gen */); } result = gch->attempt_allocation(size, is_tlab, false /* first_only */);