--- old/test/compiler/rtm/method_options/TestNoRTMLockElidingOption.java 2017-05-26 16:34:25.370927144 -0700 +++ new/test/compiler/rtm/method_options/TestNoRTMLockElidingOption.java 2017-05-26 16:34:25.198927153 -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; @@ -60,12 +57,8 @@ * rtm_state_change reason had happened and that that VM output * does not contain RTM locking statistics for compiled method. */ -public class TestNoRTMLockElidingOption extends CommandLineOptionTest { - private TestNoRTMLockElidingOption() { - super(new AndPredicate(new SupportedCPU(), new SupportedOS(), new SupportedVM())); - } +public class TestNoRTMLockElidingOption { - @Override public void runTestCases() throws Throwable { verifyOption(false); verifyOption(true); @@ -108,6 +101,6 @@ } public static void main(String args[]) throws Throwable { - new TestNoRTMLockElidingOption().test(); + new TestNoRTMLockElidingOption().runTestCases(); } }