mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-03 09:12:59 +00:00
8290846: sun/tools/jstatd/JstatdTest* tests should use VM options
Reviewed-by: cjplummer, sspitsyn
This commit is contained in:
parent
bc6a3c7b83
commit
348a0521e1
@ -43,9 +43,9 @@ public class JstatGCUtilParser {
|
||||
}
|
||||
|
||||
public enum GcStatistics {
|
||||
S0(GcStatisticsType.PERCENTAGE),
|
||||
S1(GcStatisticsType.PERCENTAGE),
|
||||
E(GcStatisticsType.PERCENTAGE),
|
||||
S0(GcStatisticsType.PERCENTAGE_OR_DASH),
|
||||
S1(GcStatisticsType.PERCENTAGE_OR_DASH),
|
||||
E(GcStatisticsType.PERCENTAGE_OR_DASH),
|
||||
O(GcStatisticsType.PERCENTAGE),
|
||||
M(GcStatisticsType.PERCENTAGE_OR_DASH),
|
||||
CCS(GcStatisticsType.PERCENTAGE_OR_DASH),
|
||||
|
||||
@ -128,7 +128,6 @@ public final class JstatdTest {
|
||||
*/
|
||||
private OutputAnalyzer runJps() throws Exception {
|
||||
JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("jps");
|
||||
launcher.addVMArgs(Utils.getFilteredTestJavaOpts("-XX:+UsePerfData"));
|
||||
launcher.addVMArg("-XX:+UsePerfData");
|
||||
launcher.addToolArg(getDestination());
|
||||
|
||||
@ -252,6 +251,7 @@ public final class JstatdTest {
|
||||
*/
|
||||
private String[] getJstatdCmd() throws Exception {
|
||||
JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("jstatd");
|
||||
launcher.addVMArgs(Utils.getTestJavaOpts());
|
||||
launcher.addVMArg("-XX:+UsePerfData");
|
||||
String testSrc = System.getProperty("test.src");
|
||||
if (port != null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user