< prev index next >

test/compiler/types/TestPhiElimination.java

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

@@ -24,12 +24,17 @@
 
 /**
  * @test
  * @bug 8150804
  * @summary Tests elimination of Phi nodes without losing type information.
- * @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement TestPhiElimination
+ *
+ * @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement
+ *                   compiler.types.TestPhiElimination
  */
+
+package compiler.types;
+
 public class TestPhiElimination {
     /*
        A::get() is inlined into test(obj) producing the following graph:
 
                Parm (obj)

@@ -88,13 +93,11 @@
             }
             t.test(a);
         }
     }
 
-}
-
-class A extends TestPhiElimination {
+    static class A extends TestPhiElimination {
     public Object f;
 
     public A create() {
         return new A();
     }

@@ -103,10 +106,9 @@
         if (f == null) {
             f = create();
         }
         return f;
     }
-}
+    }
 
-class B extends A {
-
+    static class B extends A { }
 }
< prev index next >