--- old/test/compiler/rtm/locking/TestRTMAbortThreshold.java 2017-05-26 16:34:19.478927454 -0700 +++ new/test/compiler/rtm/locking/TestRTMAbortThreshold.java 2017-05-26 16:34:19.342927461 -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,13 +44,9 @@ import compiler.testlibrary.rtm.AbortType; 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.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; @@ -57,12 +54,8 @@ * Test verifies that on RTMAbortThreshold option actually affects how soon * method will be deoptimized on high abort ratio. */ -public class TestRTMAbortThreshold extends CommandLineOptionTest { - private TestRTMAbortThreshold() { - super(new AndPredicate(new SupportedCPU(), new SupportedOS(), new SupportedVM())); - } +public class TestRTMAbortThreshold { - @Override protected void runTestCases() throws Throwable { verifyAbortThreshold(false, 1); verifyAbortThreshold(false, 10); @@ -107,7 +100,7 @@ } public static void main(String args[]) throws Throwable { - new TestRTMAbortThreshold().test(); + new TestRTMAbortThreshold().runTestCases(); } }