--- old/test/compiler/rtm/locking/TestRTMTotalCountIncrRate.java 2017-05-26 16:34:22.798927279 -0700 +++ new/test/compiler/rtm/locking/TestRTMTotalCountIncrRate.java 2017-05-26 16:34:22.666927286 -0700 @@ -29,6 +29,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management + * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission @@ -43,14 +44,10 @@ import compiler.testlibrary.rtm.CompilableTest; import compiler.testlibrary.rtm.RTMLockingStatistics; import compiler.testlibrary.rtm.RTMTestBase; -import compiler.testlibrary.rtm.predicate.SupportedCPU; -import compiler.testlibrary.rtm.predicate.SupportedOS; -import compiler.testlibrary.rtm.predicate.SupportedVM; import jdk.internal.misc.Unsafe; import jdk.test.lib.Asserts; import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.cli.CommandLineOptionTest; -import jdk.test.lib.cli.predicate.AndPredicate; import java.util.List; @@ -62,12 +59,7 @@ * -XX:RTMRetryCount=0 to avoid issue with retriable aborts. For more details on * that issue see {@link TestUseRTMAfterLockInflation}. */ -public class TestRTMTotalCountIncrRate extends CommandLineOptionTest { - private TestRTMTotalCountIncrRate() { - super(new AndPredicate(new SupportedCPU(), new SupportedOS(), new SupportedVM())); - } - - @Override +public class TestRTMTotalCountIncrRate { protected void runTestCases() throws Throwable { verifyLocksCount(1, false); verifyLocksCount(64, false); @@ -167,6 +159,6 @@ } public static void main(String args[]) throws Throwable { - new TestRTMTotalCountIncrRate().test(); + new TestRTMTotalCountIncrRate().runTestCases(); } }