< prev index next >
test/compiler/rtm/print/TestPrintPreciseRTMLockingStatistics.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
*** 30,55 ****
* different types. Test also verify that VM output does not
* contain rtm locking statistics when it should not.
* @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc
* java.management
! * @build TestPrintPreciseRTMLockingStatistics
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
! * -XX:+WhiteBoxAPI TestPrintPreciseRTMLockingStatistics
*/
- import java.util.*;
! import jdk.test.lib.*;
! import jdk.test.lib.cli.CommandLineOptionTest;
! import jdk.test.lib.cli.predicate.AndPredicate;
! import compiler.testlibrary.rtm.*;
import compiler.testlibrary.rtm.predicate.SupportedCPU;
import compiler.testlibrary.rtm.predicate.SupportedVM;
/**
* Test verifies that VM output does not contain RTM locking statistics when it
* should not (when PrintPreciseRTMLockingStatistics is off) and that with
* -XX:+PrintPreciseRTMLockingStatistics locking statistics contains sane
* total locks and aborts count as well as for specific abort types.
--- 30,65 ----
* different types. Test also verify that VM output does not
* contain rtm locking statistics when it should not.
* @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc
* java.management
! * @build compiler.rtm.print.TestPrintPreciseRTMLockingStatistics
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
! * -XX:+WhiteBoxAPI
! * compiler.rtm.print.TestPrintPreciseRTMLockingStatistics
*/
! package compiler.rtm.print;
!
! import compiler.testlibrary.rtm.AbortProvoker;
! 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.SupportedVM;
+ import jdk.test.lib.Asserts;
+ import jdk.test.lib.OutputAnalyzer;
+ import jdk.test.lib.cli.CommandLineOptionTest;
+ import jdk.test.lib.cli.predicate.AndPredicate;
+ import java.util.Collections;
+ import java.util.LinkedList;
+ import java.util.List;
+
/**
* Test verifies that VM output does not contain RTM locking statistics when it
* should not (when PrintPreciseRTMLockingStatistics is off) and that with
* -XX:+PrintPreciseRTMLockingStatistics locking statistics contains sane
* total locks and aborts count as well as for specific abort types.
< prev index next >