< prev index next >

test/compiler/c2/Test7017746.java

Print this page

        

*** 24,49 **** /** * @test * @bug 7017746 * @summary Regression : C2 compiler crash due to SIGSEGV in PhaseCFG::schedule_early() * ! * @run main/othervm -Xbatch Test */ ! public class Test { int i; ! static int test(Test t, int a, int b) { int j = t.i; int x = a - b; if (a < b) x = x + j; return x - j; } public static void main(String args[]) { ! Test t = new Test(); for (int n = 0; n < 1000000; n++) { int i = test(t, 1, 2); } } } --- 24,51 ---- /** * @test * @bug 7017746 * @summary Regression : C2 compiler crash due to SIGSEGV in PhaseCFG::schedule_early() * ! * @run main/othervm -Xbatch compiler.c2.Test7017746 */ ! package compiler.c2; ! ! public class Test7017746 { int i; ! static int test(Test7017746 t, int a, int b) { int j = t.i; int x = a - b; if (a < b) x = x + j; return x - j; } public static void main(String args[]) { ! Test7017746 t = new Test7017746(); for (int n = 0; n < 1000000; n++) { int i = test(t, 1, 2); } } }
< prev index next >