< prev index next >
test/compiler/whitebox/BlockingCompilation.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
@@ -29,23 +29,26 @@
* @library /testlibrary /test/lib /
* @build sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
- * @run main/othervm/timeout=60
+ * @run main/othervm
* -Xbootclasspath/a:.
* -Xmixed
* -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI
* -XX:+PrintCompilation
- * BlockingCompilation
+ * compiler.whitebox.BlockingCompilation
*/
+package compiler.whitebox;
+
import compiler.testlibrary.CompilerUtils;
+import sun.hotspot.WhiteBox;
+
import java.lang.reflect.Method;
import java.util.Random;
-import sun.hotspot.WhiteBox;
public class BlockingCompilation {
private static final WhiteBox WB = WhiteBox.getWhiteBox();
private static final Random RANDOM = new Random();
@@ -92,11 +95,13 @@
WB.deoptimizeMethod(m);
WB.clearMethodState(m);
// Blocking compilations on all levels, using the default versions of
// WB.enqueueMethodForCompilation() and manually setting compiler directives.
- String directive = "[{ match: \"BlockingCompilation.foo\", BackgroundCompilation: false }]";
+ String directive = "[{ match: \""
+ + BlockingCompilation.class.getName().replace('.', '/')
+ + ".foo\", BackgroundCompilation: false }]";
if (WB.addCompilerDirective(directive) != 1) {
throw new Exception("Failed to add compiler directive");
}
try {
< prev index next >