< prev index next >

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

Print this page

@@ -388,10 +388,13 @@
             m = test7(null);
         }
         Asserts.assertEQ(m, 1234);
 
         MyValue7[][] arr = new MyValue7[2][2];
+        Object[] oa = arr[1];
+        Asserts.assertNE(oa[0], null);
+
         arr[0][1] = new MyValue7(5678);
         m = 9999;
         for (int i=0; i<n; i++) {
             m = test7(arr);
         }

@@ -415,10 +418,13 @@
             m = test7Box(null);
         }
         Asserts.assertEQ(m, 1234);
 
         MyValue7Box?[][] arr = new MyValue7Box?[2][2];
+        Object[] oa = arr[1];
+        Asserts.assertEQ(oa[0], null);
+
         arr[0][1] = new MyValue7Box(5678);
         m = 9999;
         for (int i=0; i<n; i++) {
             m = test7Box(arr);
         }
< prev index next >