8154745: Move default G1 pause time target setup to argument parsing

Reviewed-by: ehelin, sjohanss
This commit is contained in:
Mikael Gerdin 2016-04-19 14:53:32 +02:00
parent 7587fbdd30
commit 91b2afa99d
4 changed files with 32 additions and 39 deletions

View file

@ -599,6 +599,14 @@ Flag::Error GCPauseIntervalMillisConstraintFunc(uintx value, bool verbose) {
value);
return Flag::VIOLATES_CONSTRAINT;
}
if (FLAG_IS_DEFAULT(MaxGCPauseMillis)) {
CommandLineError::print(verbose,
"GCPauseIntervalMillis cannot be set "
"without setting MaxGCPauseMillis\n");
return Flag::VIOLATES_CONSTRAINT;
}
if (value <= MaxGCPauseMillis) {
CommandLineError::print(verbose,
"GCPauseIntervalMillis (" UINTX_FORMAT ") must be "