8290846: sun/tools/jstatd/JstatdTest* tests should use VM options

Reviewed-by: cjplummer, sspitsyn
This commit is contained in:
Leonid Mesnik 2022-07-28 00:04:17 +00:00
parent bc6a3c7b83
commit 348a0521e1
2 changed files with 4 additions and 4 deletions

View File

@ -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),

View File

@ -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) {