< prev index next >
test/compiler/rtm/locking/TestUseRTMForInflatedLocks.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
@@ -27,26 +27,32 @@
* @bug 8031320
* @summary Verify that rtm locking is used for inflated locks.
* @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc
* java.management
- * @build TestUseRTMForInflatedLocks
+ * @build compiler.rtm.locking.TestUseRTMForInflatedLocks
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
- * -XX:+WhiteBoxAPI TestUseRTMForInflatedLocks
+ * -XX:+WhiteBoxAPI compiler.rtm.locking.TestUseRTMForInflatedLocks
*/
-import java.util.List;
+package compiler.rtm.locking;
-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.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.List;
+
/**
* Test verifies that RTM-based lock elision could be used for inflated locks
* by calling compiled method that use RTM-based lock elision and using
* manually inflated lock.
* Compiled method invoked {@code AbortProvoker.DEFAULT_ITERATIONS} times,
< prev index next >