< prev index next >

test/hotspot/jtreg/compiler/valhalla/valuetypes/TestArrays.java

Print this page

        

*** 96,106 **** Asserts.assertEQ(va[i].hash(), hash()); } } // Test creation of a value type array and element access ! @Test(failOn = ALLOC + ALLOCA + LOOP + LOAD + LOADP + STORE + TRAP) public long test2() { MyValue1[] va = new MyValue1[1]; va[0] = MyValue1.createWithFieldsInline(rI, rL); return va[0].hash(); } --- 96,106 ---- Asserts.assertEQ(va[i].hash(), hash()); } } // Test creation of a value type array and element access ! @Test(failOn = ALLOC + ALLOCA + LOOP + LOAD + STORE + TRAP) public long test2() { MyValue1[] va = new MyValue1[1]; va[0] = MyValue1.createWithFieldsInline(rI, rL); return va[0].hash(); }
*** 139,149 **** } } } // Test returning a value type array received from the interpreter ! @Test(failOn = ALLOC + ALLOCA + LOAD + LOADP + STORE + LOOP + TRAP) public MyValue1[] test4(MyValue1[] va) { return va; } @DontCompile --- 139,149 ---- } } } // Test returning a value type array received from the interpreter ! @Test(failOn = ALLOC + ALLOCA + LOAD + STORE + LOOP + TRAP) public MyValue1[] test4(MyValue1[] va) { return va; } @DontCompile
*** 656,666 **** Asserts.assertEQ(src[i-1].hash(), dst[i].hash()); } } // non escaping allocations ! @Test(failOn = ALLOCA + LOOP + LOAD + LOADP + TRAP) public MyValue2 test28() { MyValue2[] src = new MyValue2[10]; src[0] = MyValue2.createWithFieldsInline(rI, false); MyValue2[] dst = (MyValue2[])src.clone(); return dst[0]; --- 656,666 ---- Asserts.assertEQ(src[i-1].hash(), dst[i].hash()); } } // non escaping allocations ! @Test(failOn = ALLOCA + LOOP + LOAD + TRAP) public MyValue2 test28() { MyValue2[] src = new MyValue2[10]; src[0] = MyValue2.createWithFieldsInline(rI, false); MyValue2[] dst = (MyValue2[])src.clone(); return dst[0];
*** 672,682 **** MyValue2 result = test28(); Asserts.assertEQ(result.hash(), v.hash()); } // non escaping allocations ! @Test(failOn = ALLOCA + LOOP + LOAD + LOADP + TRAP) public MyValue2 test29(MyValue2[] src) { MyValue2[] dst = new MyValue2[10]; System.arraycopy(src, 0, dst, 0, 10); return dst[0]; } --- 672,682 ---- MyValue2 result = test28(); Asserts.assertEQ(result.hash(), v.hash()); } // non escaping allocations ! @Test(failOn = ALLOCA + LOOP + LOAD + TRAP) public MyValue2 test29(MyValue2[] src) { MyValue2[] dst = new MyValue2[10]; System.arraycopy(src, 0, dst, 0, 10); return dst[0]; }
*** 711,721 **** MyValue2 v = test30(src, false); Asserts.assertEQ(src[0].hash(), v.hash()); } // non escaping allocation with memory phi ! @Test(failOn = ALLOC + ALLOCA + LOOP + LOAD + LOADP + TRAP) public long test31(boolean b, boolean deopt) { MyValue2[] src = new MyValue2[1]; if (b) { src[0] = MyValue2.createWithFieldsInline(rI, true); } else { --- 711,721 ---- MyValue2 v = test30(src, false); Asserts.assertEQ(src[0].hash(), v.hash()); } // non escaping allocation with memory phi ! @Test(failOn = ALLOC + ALLOCA + LOOP + LOAD + TRAP) public long test31(boolean b, boolean deopt) { MyValue2[] src = new MyValue2[1]; if (b) { src[0] = MyValue2.createWithFieldsInline(rI, true); } else {
< prev index next >