Skip to content

Commit

Permalink
8292336: JFR: Warn users if -XX:StartFlightRecording:disk=false is sp…
Browse files Browse the repository at this point in the history
…ecified with maxage or maxsize

Reviewed-by: mgronlun
  • Loading branch information
egahlin committed Oct 3, 2022
1 parent b8b9b97 commit a69ee85
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -139,6 +139,14 @@ public void execute(ArgumentParser parser) throws DCmdException {
}

if (disk != null) {
if (!disk) {
if (maxAge != null) {
logWarning("Option maxage has no effect with disk=false.");
}
if (maxSize != null) {
logWarning("Option maxsize has no effect with disk=false.");
}
}
recording.setToDisk(disk.booleanValue());
}

Expand Down

0 comments on commit a69ee85

Please sign in to comment.