Lines Matching refs:array

147             byte[] array = new byte[32];  in testByteArrayViewVarHandle()
156 assertThrowsIOOBE(() -> vhShort.get(array, -1)); in testByteArrayViewVarHandle()
157 assertThrowsIOOBE(() -> vhShort.get(array, Integer.MIN_VALUE)); in testByteArrayViewVarHandle()
158 assertThrowsIOOBE(() -> vhShort.get(array, array.length)); in testByteArrayViewVarHandle()
159 assertThrowsIOOBE(() -> vhShort.get(array, array.length - 1)); in testByteArrayViewVarHandle()
160 assertThrowsIOOBE(() -> vhShort.get(array, Integer.MAX_VALUE)); in testByteArrayViewVarHandle()
162 for (int i = 0; i < array.length - 1; ++i) { in testByteArrayViewVarHandle()
165 vhShort.set(array, i, value); in testByteArrayViewVarHandle()
166 assertEquals(value, (short) vhShort.get(array, i)); in testByteArrayViewVarHandle()
167 assertEquals(value, toHost(order, array[i], array[i + 1])); in testByteArrayViewVarHandle()
168 for (int j = 0; j < array.length; ++j) { in testByteArrayViewVarHandle()
170 assertEquals((byte) 0, array[j]); in testByteArrayViewVarHandle()
174 vhShort.getAcquire(array, i); in testByteArrayViewVarHandle()
175 vhShort.setRelease(array, i, (short) 0); in testByteArrayViewVarHandle()
178 assertThrowsISE(() -> vhShort.getAcquire(array, fi)); in testByteArrayViewVarHandle()
179 assertThrowsISE(() -> vhShort.setRelease(array, fi, (short) 0)); in testByteArrayViewVarHandle()
181 vhShort.set(array, i, (short) 0); in testByteArrayViewVarHandle()
187 assertThrowsIOOBE(() -> vhInt.get(array, -1)); in testByteArrayViewVarHandle()
188 assertThrowsIOOBE(() -> vhInt.get(array, Integer.MIN_VALUE)); in testByteArrayViewVarHandle()
189 assertThrowsIOOBE(() -> vhInt.get(array, array.length)); in testByteArrayViewVarHandle()
190 assertThrowsIOOBE(() -> vhInt.get(array, array.length - 1)); in testByteArrayViewVarHandle()
191 assertThrowsIOOBE(() -> vhInt.get(array, array.length - 2)); in testByteArrayViewVarHandle()
192 assertThrowsIOOBE(() -> vhInt.get(array, array.length - 3)); in testByteArrayViewVarHandle()
193 assertThrowsIOOBE(() -> vhInt.get(array, Integer.MAX_VALUE)); in testByteArrayViewVarHandle()
194 for (int i = 0; i < array.length - 3; ++i) { in testByteArrayViewVarHandle()
197 vhInt.set(array, i, value); in testByteArrayViewVarHandle()
198 assertEquals(value, vhInt.get(array, i)); in testByteArrayViewVarHandle()
201 toHost(order, array[i], array[i + 1], array[i + 2], array[i + 3])); in testByteArrayViewVarHandle()
202 for (int j = 0; j < array.length; ++j) { in testByteArrayViewVarHandle()
204 assertEquals((byte) 0, array[j]); in testByteArrayViewVarHandle()
208 vhInt.getAcquire(array, i); in testByteArrayViewVarHandle()
209 vhInt.setRelease(array, i, (int) 0); in testByteArrayViewVarHandle()
212 assertThrowsISE(() -> vhInt.getAcquire(array, fi)); in testByteArrayViewVarHandle()
213 assertThrowsISE(() -> vhInt.setRelease(array, fi, (int) 0)); in testByteArrayViewVarHandle()
215 vhInt.set(array, i, 0); in testByteArrayViewVarHandle()