Lines Matching refs:vh
25 private static final VarHandle vh; field in VarHandleBadCoordinateTests.FieldCoordinateTypeTest
39 vh = MethodHandles.lookup().findVarHandle(A.class, "field", byte.class);
47 vh.compareAndSet(new A(), (byte) 0, (byte) 3); in doTest()
48 vh.compareAndSet(new B(), (byte) 0, (byte) 3); in doTest()
50 vh.compareAndSet(new C(), (byte) 0, (byte) 3); in doTest()
55 vh.compareAndSet(0xbad0bad0, (byte) 0, (byte) 3); in doTest()
60 vh.compareAndSet(0xbad0bad0, (byte) 0, Integer.MAX_VALUE); in doTest()
65 vh.compareAndSet(0xbad0bad0, (byte) 0); in doTest()
70 vh.compareAndSet(new A(), (byte) 0, Integer.MAX_VALUE); in doTest()
75 vh.compareAndSet((A) null, (byte) 0, (byte) 3); in doTest()
87 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ArrayElementOutOfBoundsIndexTest
91 vh = MethodHandles.arrayElementVarHandle(long[].class);
101 vh.get(values, -1); in doTest()
106 vh.get(values, values.length); in doTest()
111 vh.get(values, Integer.MAX_VALUE - 1); in doTest()
123 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ArrayElementBadIndexTypeTest
127 vh = MethodHandles.arrayElementVarHandle(long[].class);
136 vh.set(values, Integer.valueOf(3), Long.MIN_VALUE); in doTest()
137 vh.set(values, Byte.valueOf((byte) 0), Long.MIN_VALUE); in doTest()
139 vh.set(values, 3.3f, Long.MAX_VALUE); in doTest()
151 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ArrayElementNullArrayTest
155 vh = MethodHandles.arrayElementVarHandle(long[].class);
165 vh.get(values); in doTest()
177 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ArrayElementWrongArrayTypeTest
181 vh = MethodHandles.arrayElementVarHandle(long[].class);
190 vh.get(new char[10], 0); in doTest()
202 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ArrayElementMissingIndexTest
206 vh = MethodHandles.arrayElementVarHandle(long[].class);
216 vh.get(values); in doTest()
228 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ByteArrayViewOutOfBoundsIndexTest
232 vh = MethodHandles.byteArrayViewVarHandle(int[].class, ByteOrder.BIG_ENDIAN);
242 vh.get(bytes, -1); in doTest()
247 vh.get(bytes, bytes.length); in doTest()
252 vh.get(bytes, Integer.MAX_VALUE - 1); in doTest()
257 vh.get(bytes, bytes.length - Integer.SIZE / 8 + 1); in doTest()
261 vh.get(bytes, bytes.length - Integer.SIZE / 8); in doTest()
270 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ByteArrayViewUnalignedAccessesIndexTest
274 vh = MethodHandles.byteArrayViewVarHandle(int[].class, ByteOrder.BIG_ENDIAN);
288 vh.set(bytes, i, 380); in doTest()
289 vh.get(bytes, i); in doTest()
293 vh.compareAndExchange(bytes, i, 777, 320); in doTest()
299 vh.compareAndExchangeAcquire(bytes, i, 320, 767); in doTest()
305 vh.compareAndExchangeRelease(bytes, i, 767, 321); in doTest()
311 vh.compareAndSet(bytes, i, 767, 321); in doTest()
317 vh.getAcquire(bytes, i); in doTest()
323 vh.getAndAdd(bytes, i, 117); in doTest()
329 vh.getAndAddAcquire(bytes, i, 117); in doTest()
335 vh.getAndAddRelease(bytes, i, 117); in doTest()
341 vh.getAndBitwiseAnd(bytes, i, 118); in doTest()
347 vh.getAndBitwiseAndAcquire(bytes, i, 118); in doTest()
353 vh.getAndBitwiseAndRelease(bytes, i, 118); in doTest()
359 vh.getAndBitwiseOr(bytes, i, 118); in doTest()
365 vh.getAndBitwiseOrAcquire(bytes, i, 118); in doTest()
371 vh.getAndBitwiseOrRelease(bytes, i, 118); in doTest()
377 vh.getAndBitwiseXor(bytes, i, 118); in doTest()
383 vh.getAndBitwiseXorAcquire(bytes, i, 118); in doTest()
389 vh.getAndBitwiseXorRelease(bytes, i, 118); in doTest()
395 vh.getAndSet(bytes, i, 117); in doTest()
401 vh.getAndSetAcquire(bytes, i, 117); in doTest()
407 vh.getAndSetRelease(bytes, i, 117); in doTest()
413 vh.getOpaque(bytes, i); in doTest()
419 vh.getVolatile(bytes, i); in doTest()
425 vh.setOpaque(bytes, i, 777); in doTest()
431 vh.setRelease(bytes, i, 319); in doTest()
437 vh.setVolatile(bytes, i, 787); in doTest()
443 vh.weakCompareAndSet(bytes, i, 787, 340); in doTest()
449 vh.weakCompareAndSetAcquire(bytes, i, 787, 340); in doTest()
455 vh.weakCompareAndSetPlain(bytes, i, 787, 340); in doTest()
461 vh.weakCompareAndSetRelease(bytes, i, 787, 340); in doTest()
475 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ByteArrayViewBadIndexTypeTest
479 vh = MethodHandles.byteArrayViewVarHandle(int[].class, ByteOrder.LITTLE_ENDIAN);
489 vh.get(bytes, Integer.valueOf(3)); in doTest()
490 vh.get(bytes, Short.valueOf((short) 3)); in doTest()
493 vh.get(bytes, System.out); in doTest()
505 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ByteArrayViewMissingIndexTest
509 vh = MethodHandles.byteArrayViewVarHandle(int[].class, ByteOrder.LITTLE_ENDIAN);
519 vh.get(bytes); in doTest()
531 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ByteArrayViewBadByteArrayTest
535 vh = MethodHandles.byteArrayViewVarHandle(int[].class, ByteOrder.LITTLE_ENDIAN);
545 vh.get(bytes, Integer.valueOf(3)); in doTest()
550 vh.get(System.err, Integer.valueOf(3)); in doTest()
562 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ByteBufferViewOutOfBoundsIndexTest
566 vh = MethodHandles.byteBufferViewVarHandle(float[].class, ByteOrder.LITTLE_ENDIAN);
582 vh.get(buffer, -1); in doTest()
587 vh.get(buffer, buffer.limit()); in doTest()
592 vh.get(buffer, Integer.MAX_VALUE - 1); in doTest()
597 vh.get(buffer, buffer.limit() - Integer.SIZE / 8 + 1); in doTest()
601 vh.get(buffer, buffer.limit() - Integer.SIZE / 8); in doTest()
611 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ByteBufferViewUnalignedAccessesIndexTest
615 vh = MethodHandles.byteBufferViewVarHandle(int[].class, ByteOrder.BIG_ENDIAN);
635 vh.set(buffer, i, 380); in doTest()
636 vh.get(buffer, i); in doTest()
640 vh.compareAndExchange(buffer, i, 777, 320); in doTest()
646 vh.compareAndExchangeAcquire(buffer, i, 320, 767); in doTest()
652 vh.compareAndExchangeRelease(buffer, i, 767, 321); in doTest()
658 vh.compareAndSet(buffer, i, 767, 321); in doTest()
664 vh.getAcquire(buffer, i); in doTest()
670 vh.getAndAdd(buffer, i, 117); in doTest()
676 vh.getAndAddAcquire(buffer, i, 117); in doTest()
682 vh.getAndAddRelease(buffer, i, 117); in doTest()
688 vh.getAndBitwiseAnd(buffer, i, 118); in doTest()
694 vh.getAndBitwiseAndAcquire(buffer, i, 118); in doTest()
700 vh.getAndBitwiseAndRelease(buffer, i, 118); in doTest()
706 vh.getAndBitwiseOr(buffer, i, 118); in doTest()
712 vh.getAndBitwiseOrAcquire(buffer, i, 118); in doTest()
718 vh.getAndBitwiseOrRelease(buffer, i, 118); in doTest()
724 vh.getAndBitwiseXor(buffer, i, 118); in doTest()
730 vh.getAndBitwiseXorAcquire(buffer, i, 118); in doTest()
736 vh.getAndBitwiseXorRelease(buffer, i, 118); in doTest()
742 vh.getAndSet(buffer, i, 117); in doTest()
748 vh.getAndSetAcquire(buffer, i, 117); in doTest()
754 vh.getAndSetRelease(buffer, i, 117); in doTest()
760 vh.getOpaque(buffer, i); in doTest()
766 vh.getVolatile(buffer, i); in doTest()
772 vh.setOpaque(buffer, i, 777); in doTest()
778 vh.setRelease(buffer, i, 319); in doTest()
784 vh.setVolatile(buffer, i, 787); in doTest()
790 vh.weakCompareAndSet(buffer, i, 787, 340); in doTest()
796 vh.weakCompareAndSetAcquire(buffer, i, 787, 340); in doTest()
802 vh.weakCompareAndSetPlain(buffer, i, 787, 340); in doTest()
808 vh.weakCompareAndSetRelease(buffer, i, 787, 340); in doTest()
823 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ByteBufferViewBadIndexTypeTest
827 vh = MethodHandles.byteBufferViewVarHandle(int[].class, ByteOrder.LITTLE_ENDIAN);
844 vh.get(buffer, Integer.valueOf(3)); in doTest()
845 vh.get(buffer, Short.valueOf((short) 3)); in doTest()
846 vh.get(buffer, Byte.valueOf((byte) 7)); in doTest()
848 vh.get(buffer, System.out); in doTest()
861 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ByteBufferViewMissingIndexTest
865 vh = MethodHandles.byteBufferViewVarHandle(int[].class, ByteOrder.LITTLE_ENDIAN);
881 vh.get(buffer); in doTest()
894 private static final VarHandle vh; field in VarHandleBadCoordinateTests.ByteBufferViewBadByteBufferTest
898 vh = MethodHandles.byteBufferViewVarHandle(int[].class, ByteOrder.LITTLE_ENDIAN);
910 vh.get(buffer, 3); in doTest()
916 vh.get(System.err, 3); in doTest()