21 * questions. 22 * 23 */ 24 25 /** 26 * @test 27 * @bug 8031320 28 * @summary Verify PrintPreciseRTMLockingStatistics on CPUs without 29 * rtm support and/or unsupported VM. 30 * @library /testlibrary /../../test/lib /compiler/testlibrary 31 * @modules java.base/sun.misc 32 * java.management 33 * @build TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig 34 * @run main ClassFileInstaller sun.hotspot.WhiteBox 35 * sun.hotspot.WhiteBox$WhiteBoxPermission 36 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions 37 * -XX:+WhiteBoxAPI 38 * TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig 39 */ 40 41 import com.oracle.java.testlibrary.cli.predicate.AndPredicate; 42 import com.oracle.java.testlibrary.cli.predicate.NotPredicate; 43 import rtm.predicate.SupportedCPU; 44 import rtm.predicate.SupportedVM; 45 46 public class TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig 47 extends TestPrintPreciseRTMLockingStatisticsBase { 48 private TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig() { 49 super(new NotPredicate(new AndPredicate(new SupportedCPU(), 50 new SupportedVM()))); 51 } 52 53 public static void main(String args[]) throws Throwable { 54 new TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig() 55 .test(); 56 } 57 } | 21 * questions. 22 * 23 */ 24 25 /** 26 * @test 27 * @bug 8031320 28 * @summary Verify PrintPreciseRTMLockingStatistics on CPUs without 29 * rtm support and/or unsupported VM. 30 * @library /testlibrary /../../test/lib /compiler/testlibrary 31 * @modules java.base/sun.misc 32 * java.management 33 * @build TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig 34 * @run main ClassFileInstaller sun.hotspot.WhiteBox 35 * sun.hotspot.WhiteBox$WhiteBoxPermission 36 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions 37 * -XX:+WhiteBoxAPI 38 * TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig 39 */ 40 41 import jdk.test.lib.cli.predicate.AndPredicate; 42 import jdk.test.lib.cli.predicate.NotPredicate; 43 import rtm.predicate.SupportedCPU; 44 import rtm.predicate.SupportedVM; 45 46 public class TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig 47 extends TestPrintPreciseRTMLockingStatisticsBase { 48 private TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig() { 49 super(new NotPredicate(new AndPredicate(new SupportedCPU(), 50 new SupportedVM()))); 51 } 52 53 public static void main(String args[]) throws Throwable { 54 new TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig() 55 .test(); 56 } 57 } |