mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8154745: Move default G1 pause time target setup to argument parsing
Reviewed-by: ehelin, sjohanss
This commit is contained in:
parent
7587fbdd30
commit
91b2afa99d
4 changed files with 32 additions and 39 deletions
|
@ -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 "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue