< prev index next >
test/compiler/loopopts/UseCountedLoopSafepoints.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
@@ -26,19 +26,21 @@
* @test
* @bug 6869327
* @summary Test that C2 flag UseCountedLoopSafepoints ensures a safepoint is kept in a CountedLoop
* @library /testlibrary
* @modules java.base/jdk.internal.misc
- * @modules java.base
* @ignore 8146096
- * @run main UseCountedLoopSafepoints
+ * @run driver compiler.loopopts.UseCountedLoopSafepoints
*/
-import java.util.concurrent.atomic.AtomicLong;
-import jdk.test.lib.ProcessTools;
+package compiler.loopopts;
+
import jdk.test.lib.OutputAnalyzer;
+import jdk.test.lib.ProcessTools;
+import java.util.concurrent.atomic.AtomicLong;
+
public class UseCountedLoopSafepoints {
private static final AtomicLong _num = new AtomicLong(0);
// Uses the fact that an EnableBiasedLocking vmop will be started
// after 500ms, while we are still in the loop. If there is a
@@ -57,11 +59,11 @@
"-XX:+UseBiasedLocking",
"-XX:BiasedLockingStartupDelay=500",
"-XX:+SafepointTimeout",
"-XX:SafepointTimeoutDelay=2000",
"-XX:+UseCountedLoopSafepoints",
- "UseCountedLoopSafepoints",
+ UseCountedLoopSafepoints.class.getName(),
"2000000000"
);
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldNotContain("Timeout detected");
output.shouldHaveExitValue(0);
< prev index next >