mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-16 09:50:30 +00:00
8023643: G1 assert failed when NewSize was specified greater than MaxNewSize
Exit with an error if incompatible NewSize and MaxNeSize are set Reviewed-by: brutisso, tschatzl
This commit is contained in:
parent
354de63fbf
commit
588c91b042
@ -344,6 +344,10 @@ G1YoungGenSizer::G1YoungGenSizer() : _sizer_kind(SizerDefaults), _adaptive_size(
|
||||
}
|
||||
}
|
||||
|
||||
if (FLAG_IS_CMDLINE(NewSize) && FLAG_IS_CMDLINE(MaxNewSize) && NewSize > MaxNewSize) {
|
||||
vm_exit_during_initialization("Initial young gen size set larger than the maximum young gen size");
|
||||
}
|
||||
|
||||
if (FLAG_IS_CMDLINE(NewSize)) {
|
||||
_min_desired_young_length = MAX2((uint) (NewSize / HeapRegion::GrainBytes),
|
||||
1U);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user