< prev index next >

test/compiler/whitebox/BlockingCompilation.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke

*** 29,51 **** * @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 * -Xbootclasspath/a:. * -Xmixed * -XX:+UnlockDiagnosticVMOptions * -XX:+WhiteBoxAPI * -XX:+PrintCompilation ! * BlockingCompilation */ import compiler.testlibrary.CompilerUtils; 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(); --- 29,54 ---- * @library /testlibrary /test/lib / * @build sun.hotspot.WhiteBox * compiler.testlibrary.CompilerUtils * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission ! * @run main/othervm * -Xbootclasspath/a:. * -Xmixed * -XX:+UnlockDiagnosticVMOptions * -XX:+WhiteBoxAPI * -XX:+PrintCompilation ! * compiler.whitebox.BlockingCompilation */ + package compiler.whitebox; + import compiler.testlibrary.CompilerUtils; + import sun.hotspot.WhiteBox; + import java.lang.reflect.Method; import java.util.Random; public class BlockingCompilation { private static final WhiteBox WB = WhiteBox.getWhiteBox(); private static final Random RANDOM = new Random();
*** 92,102 **** 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 }]"; if (WB.addCompilerDirective(directive) != 1) { throw new Exception("Failed to add compiler directive"); } try { --- 95,107 ---- 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.class.getName().replace('.', '/') ! + ".foo\", BackgroundCompilation: false }]"; if (WB.addCompilerDirective(directive) != 1) { throw new Exception("Failed to add compiler directive"); } try {
< prev index next >