< prev index next >

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

Print this page

        

*** 82,93 **** protected long hash(int x, long y) { return MyValue1.createWithFieldsInline(x, y).hash(); } // Test value type array creation and initialization ! @Test(valid = ValueTypeArrayFlattenOn) ! @Test(valid = ValueTypeArrayFlattenOff, failOn = LOAD) public MyValue1[] test1(int len) { MyValue1[] va = new MyValue1[len]; for (int i = 0; i < len; ++i) { va[i] = MyValue1.createWithFieldsDontInline(rI, rL); } --- 82,93 ---- protected long hash(int x, long y) { return MyValue1.createWithFieldsInline(x, y).hash(); } // Test value type array creation and initialization ! @Test(valid = ValueTypeArrayFlattenOn, match = { ALLOCA }, matchCount = { 1 }) ! @Test(valid = ValueTypeArrayFlattenOff, match = { ALLOCA }, matchCount = { 1 }, failOn = LOAD) public MyValue1[] test1(int len) { MyValue1[] va = new MyValue1[len]; for (int i = 0; i < len; ++i) { va[i] = MyValue1.createWithFieldsDontInline(rI, rL); }
*** 1538,1548 **** Asserts.assertEQ(va[i].hashPrimitive(), var[i].hashPrimitive()); } } // Check init store elimination ! @Test public MyValue1[] test66(MyValue1 vt) { MyValue1[] va = new MyValue1[1]; va[0] = vt; return va; } --- 1538,1548 ---- Asserts.assertEQ(va[i].hashPrimitive(), var[i].hashPrimitive()); } } // Check init store elimination ! @Test(match = { ALLOCA }, matchCount = { 1 }) public MyValue1[] test66(MyValue1 vt) { MyValue1[] va = new MyValue1[1]; va[0] = vt; return va; }
< prev index next >