< prev index next >
test/compiler/rtm/locking/TestRTMDeoptOnLowAbortRatio.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
@@ -27,26 +27,35 @@
* @bug 8031320
* @summary Verify that on low abort ratio method will be recompiled.
* @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc
* java.management
- * @build TestRTMDeoptOnLowAbortRatio
+ * @build compiler.rtm.locking.TestRTMDeoptOnLowAbortRatio
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
- * -XX:+WhiteBoxAPI TestRTMDeoptOnLowAbortRatio
+ * -XX:+WhiteBoxAPI
+ * compiler.rtm.locking.TestRTMDeoptOnLowAbortRatio
*/
-import java.util.List;
-import jdk.test.lib.*;
-import jdk.test.lib.cli.CommandLineOptionTest;
-import jdk.test.lib.cli.predicate.AndPredicate;
-import compiler.testlibrary.rtm.*;
+package compiler.rtm.locking;
+
+import compiler.testlibrary.rtm.AbortProvoker;
+import compiler.testlibrary.rtm.CompilableTest;
+import compiler.testlibrary.rtm.RTMLockingStatistics;
+import compiler.testlibrary.rtm.RTMTestBase;
import compiler.testlibrary.rtm.predicate.SupportedCPU;
import compiler.testlibrary.rtm.predicate.SupportedVM;
import jdk.internal.misc.Unsafe;
+import jdk.test.lib.Asserts;
+import jdk.test.lib.OutputAnalyzer;
+import jdk.test.lib.Utils;
+import jdk.test.lib.cli.CommandLineOptionTest;
+import jdk.test.lib.cli.predicate.AndPredicate;
+import java.util.List;
+
/**
* Test verifies that low abort ratio method will be deoptimized with
* <i>rtm_state_change</i> reason and will continue to use RTM-based lock
* elision after that.
* This test make asserts on total locks count done by compiled method,
< prev index next >