comparison src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp @ 12894:24f32d09a0d7

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
author jwilhelm
date Sat, 12 Oct 2013 00:49:19 +0200
parents 9b4d0569f2f4
children 4288e54fd145
comparison
equal deleted inserted replaced
12893:2382ff14d889 12894:24f32d09a0d7
340 } else { 340 } else {
341 _sizer_kind = SizerNewRatio; 341 _sizer_kind = SizerNewRatio;
342 _adaptive_size = false; 342 _adaptive_size = false;
343 return; 343 return;
344 } 344 }
345 }
346
347 if (FLAG_IS_CMDLINE(NewSize) && FLAG_IS_CMDLINE(MaxNewSize) && NewSize > MaxNewSize) {
348 vm_exit_during_initialization("Initial young gen size set larger than the maximum young gen size");
345 } 349 }
346 350
347 if (FLAG_IS_CMDLINE(NewSize)) { 351 if (FLAG_IS_CMDLINE(NewSize)) {
348 _min_desired_young_length = MAX2((uint) (NewSize / HeapRegion::GrainBytes), 352 _min_desired_young_length = MAX2((uint) (NewSize / HeapRegion::GrainBytes),
349 1U); 353 1U);