< prev index next >

test/compiler/uncommontrap/DeoptReallocFailure.java

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

*** 23,57 **** /* * @test * @bug 8146416 * @library /test/lib /testlibrary / * @build sun.hotspot.WhiteBox ! * @run main ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission ! * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbatch -XX:CompileCommand=exclude,DeoptReallocFailure::main -Xmx100m DeoptReallocFailure * */ ! import java.lang.reflect.Method; import sun.hotspot.WhiteBox; ! class MemoryChunk { MemoryChunk other; Object[][] array; MemoryChunk(MemoryChunk other) { this.other = other; array = new Object[1024 * 256][]; } ! } ! class NoEscape { long f1; ! } - public class DeoptReallocFailure { - static MemoryChunk root; private static final WhiteBox WB = WhiteBox.getWhiteBox(); public static synchronized long test() { NoEscape[] noEscape = new NoEscape[45]; --- 23,64 ---- /* * @test * @bug 8146416 * @library /test/lib /testlibrary / + * * @build sun.hotspot.WhiteBox ! * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission ! * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions ! * -XX:+WhiteBoxAPI -Xbatch -Xmx100m ! * -XX:CompileCommand=exclude,compiler.uncommontrap.DeoptReallocFailure::main ! * compiler.uncommontrap.DeoptReallocFailure * */ ! ! package compiler.uncommontrap; ! import sun.hotspot.WhiteBox; ! import java.lang.reflect.Method; ! ! public class DeoptReallocFailure { ! static class MemoryChunk { MemoryChunk other; Object[][] array; MemoryChunk(MemoryChunk other) { this.other = other; array = new Object[1024 * 256][]; } ! } ! static class NoEscape { long f1; ! } static MemoryChunk root; private static final WhiteBox WB = WhiteBox.getWhiteBox(); public static synchronized long test() { NoEscape[] noEscape = new NoEscape[45];
< prev index next >