Sat, 12 Oct 2013 00:49:19 +0200
8023643: G1 assert failed when NewSize was specified greater than MaxNewSize
Summary: Exit with an error if incompatible NewSize and MaxNeSize are set
Reviewed-by: brutisso, tschatzl
src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Sat Oct 12 05:08:42 2013 +0000 1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Sat Oct 12 00:49:19 2013 +0200 1.3 @@ -344,6 +344,10 @@ 1.4 } 1.5 } 1.6 1.7 + if (FLAG_IS_CMDLINE(NewSize) && FLAG_IS_CMDLINE(MaxNewSize) && NewSize > MaxNewSize) { 1.8 + vm_exit_during_initialization("Initial young gen size set larger than the maximum young gen size"); 1.9 + } 1.10 + 1.11 if (FLAG_IS_CMDLINE(NewSize)) { 1.12 _min_desired_young_length = MAX2((uint) (NewSize / HeapRegion::GrainBytes), 1.13 1U);