8292336: JFR: Warn users if -XX:StartFlightRecording:disk=false is specified with maxage or maxsize
Reviewed-by: mgronlun
This commit is contained in:
parent
b8b9b97a1a
commit
a69ee85308
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user