< prev index next >

test/compiler/types/TestPhiElimination.java

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

*** 24,35 **** /** * @test * @bug 8150804 * @summary Tests elimination of Phi nodes without losing type information. ! * @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement TestPhiElimination */ public class TestPhiElimination { /* A::get() is inlined into test(obj) producing the following graph: Parm (obj) --- 24,40 ---- /** * @test * @bug 8150804 * @summary Tests elimination of Phi nodes without losing type information. ! * ! * @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,100 **** } t.test(a); } } ! } ! ! class A extends TestPhiElimination { public Object f; public A create() { return new A(); } --- 93,103 ---- } t.test(a); } } ! static class A extends TestPhiElimination { public Object f; public A create() { return new A(); }
*** 103,112 **** if (f == null) { f = create(); } return f; } ! } ! class B extends A { ! } --- 106,114 ---- if (f == null) { f = create(); } return f; } ! } ! static class B extends A { } }
< prev index next >