8292336: JFR: Warn users if -XX:StartFlightRecording:disk=false is specified with maxage or maxsize

Reviewed-by: mgronlun
This commit is contained in:
Erik Gahlin 2022-10-03 06:13:39 +00:00
parent b8b9b97a1a
commit a69ee85308

View File

@ -139,6 +139,14 @@ final class DCmdStart extends AbstractDCmd {
}
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());
}