< prev index next >

test/compiler/uncommontrap/DeoptReallocFailure.java

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

@@ -23,35 +23,42 @@
 
 /*
  * @test
  * @bug 8146416
  * @library /test/lib /testlibrary /
+ *
  * @build sun.hotspot.WhiteBox
- * @run main ClassFileInstaller sun.hotspot.WhiteBox
+ * @run driver 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
+ * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
+ *      -XX:+WhiteBoxAPI -Xbatch -Xmx100m
+ *      -XX:CompileCommand=exclude,compiler.uncommontrap.DeoptReallocFailure::main
+ *      compiler.uncommontrap.DeoptReallocFailure
  *
  */
-import java.lang.reflect.Method;
+
+package compiler.uncommontrap;
+
 import sun.hotspot.WhiteBox;
 
-class MemoryChunk {
+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][];
     }
-}
+    }
 
-class NoEscape {
+    static 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];
< prev index next >