8233659: [TESTBUG] runtime/cds/appcds/CommandLineFlagCombo.java fails when jfr is disabled
Reviewed-by: iklam
This commit is contained in:
parent
1c2b406ab5
commit
9c2bb3ccf3
@ -44,6 +44,7 @@ import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
||||
import sun.hotspot.code.Compiler;
|
||||
import sun.hotspot.WhiteBox;
|
||||
|
||||
public class CommandLineFlagCombo {
|
||||
|
||||
@ -128,6 +129,12 @@ public class CommandLineFlagCombo {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!WhiteBox.getWhiteBox().isJFRIncludedInVmBuild() && testEntry.equals("-XX:+FlightRecorder"))
|
||||
{
|
||||
System.out.println("JFR does not exist");
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user