/libcore/ojluni/src/test/java/lang/invoke/VarHandles/ |
D | VarHandleTestMethodTypeDouble.java | 736 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testInstanceFieldWrongMethodType() 739 … double x = (double) hs.get(am, methodType(double.class, VarHandleTestMethodTypeDouble.class)). in testInstanceFieldWrongMethodType() 743 double x = (double) hs.get(am, methodType(double.class, Class.class)). in testInstanceFieldWrongMethodType() 747 double x = (double) hs.get(am, methodType(double.class, int.class)). in testInstanceFieldWrongMethodType() 752 … Void x = (Void) hs.get(am, methodType(Void.class, VarHandleTestMethodTypeDouble.class)). in testInstanceFieldWrongMethodType() 756 … boolean x = (boolean) hs.get(am, methodType(boolean.class, VarHandleTestMethodTypeDouble.class)). in testInstanceFieldWrongMethodType() 761 double x = (double) hs.get(am, methodType(double.class)). in testInstanceFieldWrongMethodType() 765 …double x = (double) hs.get(am, methodType(double.class, VarHandleTestMethodTypeDouble.class, Class… in testInstanceFieldWrongMethodType() 770 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { in testInstanceFieldWrongMethodType() 773 … hs.get(am, methodType(void.class, VarHandleTestMethodTypeDouble.class, double.class)). in testInstanceFieldWrongMethodType() [all …]
|
D | VarHandleTestMethodTypeFloat.java | 736 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testInstanceFieldWrongMethodType() 739 … float x = (float) hs.get(am, methodType(float.class, VarHandleTestMethodTypeFloat.class)). in testInstanceFieldWrongMethodType() 743 float x = (float) hs.get(am, methodType(float.class, Class.class)). in testInstanceFieldWrongMethodType() 747 float x = (float) hs.get(am, methodType(float.class, int.class)). in testInstanceFieldWrongMethodType() 752 … Void x = (Void) hs.get(am, methodType(Void.class, VarHandleTestMethodTypeFloat.class)). in testInstanceFieldWrongMethodType() 756 … boolean x = (boolean) hs.get(am, methodType(boolean.class, VarHandleTestMethodTypeFloat.class)). in testInstanceFieldWrongMethodType() 761 float x = (float) hs.get(am, methodType(float.class)). in testInstanceFieldWrongMethodType() 765 …float x = (float) hs.get(am, methodType(float.class, VarHandleTestMethodTypeFloat.class, Class.cla… in testInstanceFieldWrongMethodType() 770 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { in testInstanceFieldWrongMethodType() 773 hs.get(am, methodType(void.class, VarHandleTestMethodTypeFloat.class, float.class)). in testInstanceFieldWrongMethodType() [all …]
|
D | VarHandleTestMethodTypeLong.java | 1004 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testInstanceFieldWrongMethodType() 1007 … long x = (long) hs.get(am, methodType(long.class, VarHandleTestMethodTypeLong.class)). in testInstanceFieldWrongMethodType() 1011 long x = (long) hs.get(am, methodType(long.class, Class.class)). in testInstanceFieldWrongMethodType() 1015 long x = (long) hs.get(am, methodType(long.class, int.class)). in testInstanceFieldWrongMethodType() 1020 … Void x = (Void) hs.get(am, methodType(Void.class, VarHandleTestMethodTypeLong.class)). in testInstanceFieldWrongMethodType() 1024 … boolean x = (boolean) hs.get(am, methodType(boolean.class, VarHandleTestMethodTypeLong.class)). in testInstanceFieldWrongMethodType() 1029 long x = (long) hs.get(am, methodType(long.class)). in testInstanceFieldWrongMethodType() 1033 …long x = (long) hs.get(am, methodType(long.class, VarHandleTestMethodTypeLong.class, Class.class)). in testInstanceFieldWrongMethodType() 1038 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { in testInstanceFieldWrongMethodType() 1041 hs.get(am, methodType(void.class, VarHandleTestMethodTypeLong.class, long.class)). in testInstanceFieldWrongMethodType() [all …]
|
D | VarHandleTestMethodTypeInt.java | 1004 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testInstanceFieldWrongMethodType() 1007 int x = (int) hs.get(am, methodType(int.class, VarHandleTestMethodTypeInt.class)). in testInstanceFieldWrongMethodType() 1011 int x = (int) hs.get(am, methodType(int.class, Class.class)). in testInstanceFieldWrongMethodType() 1015 int x = (int) hs.get(am, methodType(int.class, int.class)). in testInstanceFieldWrongMethodType() 1020 … Void x = (Void) hs.get(am, methodType(Void.class, VarHandleTestMethodTypeInt.class)). in testInstanceFieldWrongMethodType() 1024 … boolean x = (boolean) hs.get(am, methodType(boolean.class, VarHandleTestMethodTypeInt.class)). in testInstanceFieldWrongMethodType() 1029 int x = (int) hs.get(am, methodType(int.class)). in testInstanceFieldWrongMethodType() 1033 … int x = (int) hs.get(am, methodType(int.class, VarHandleTestMethodTypeInt.class, Class.class)). in testInstanceFieldWrongMethodType() 1038 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { in testInstanceFieldWrongMethodType() 1041 hs.get(am, methodType(void.class, VarHandleTestMethodTypeInt.class, int.class)). in testInstanceFieldWrongMethodType() [all …]
|
D | VarHandleTestMethodTypeByte.java | 1004 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testInstanceFieldWrongMethodType() 1007 … byte x = (byte) hs.get(am, methodType(byte.class, VarHandleTestMethodTypeByte.class)). in testInstanceFieldWrongMethodType() 1011 byte x = (byte) hs.get(am, methodType(byte.class, Class.class)). in testInstanceFieldWrongMethodType() 1015 byte x = (byte) hs.get(am, methodType(byte.class, int.class)). in testInstanceFieldWrongMethodType() 1020 … Void x = (Void) hs.get(am, methodType(Void.class, VarHandleTestMethodTypeByte.class)). in testInstanceFieldWrongMethodType() 1024 … boolean x = (boolean) hs.get(am, methodType(boolean.class, VarHandleTestMethodTypeByte.class)). in testInstanceFieldWrongMethodType() 1029 byte x = (byte) hs.get(am, methodType(byte.class)). in testInstanceFieldWrongMethodType() 1033 …byte x = (byte) hs.get(am, methodType(byte.class, VarHandleTestMethodTypeByte.class, Class.class)). in testInstanceFieldWrongMethodType() 1038 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { in testInstanceFieldWrongMethodType() 1041 hs.get(am, methodType(void.class, VarHandleTestMethodTypeByte.class, byte.class)). in testInstanceFieldWrongMethodType() [all …]
|
D | VarHandleTestMethodTypeShort.java | 1004 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testInstanceFieldWrongMethodType() 1007 … short x = (short) hs.get(am, methodType(short.class, VarHandleTestMethodTypeShort.class)). in testInstanceFieldWrongMethodType() 1011 short x = (short) hs.get(am, methodType(short.class, Class.class)). in testInstanceFieldWrongMethodType() 1015 short x = (short) hs.get(am, methodType(short.class, int.class)). in testInstanceFieldWrongMethodType() 1020 … Void x = (Void) hs.get(am, methodType(Void.class, VarHandleTestMethodTypeShort.class)). in testInstanceFieldWrongMethodType() 1024 … boolean x = (boolean) hs.get(am, methodType(boolean.class, VarHandleTestMethodTypeShort.class)). in testInstanceFieldWrongMethodType() 1029 short x = (short) hs.get(am, methodType(short.class)). in testInstanceFieldWrongMethodType() 1033 …short x = (short) hs.get(am, methodType(short.class, VarHandleTestMethodTypeShort.class, Class.cla… in testInstanceFieldWrongMethodType() 1038 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { in testInstanceFieldWrongMethodType() 1041 hs.get(am, methodType(void.class, VarHandleTestMethodTypeShort.class, short.class)). in testInstanceFieldWrongMethodType() [all …]
|
D | VarHandleTestMethodTypeChar.java | 1004 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testInstanceFieldWrongMethodType() 1007 … char x = (char) hs.get(am, methodType(char.class, VarHandleTestMethodTypeChar.class)). in testInstanceFieldWrongMethodType() 1011 char x = (char) hs.get(am, methodType(char.class, Class.class)). in testInstanceFieldWrongMethodType() 1015 char x = (char) hs.get(am, methodType(char.class, int.class)). in testInstanceFieldWrongMethodType() 1020 … Void x = (Void) hs.get(am, methodType(Void.class, VarHandleTestMethodTypeChar.class)). in testInstanceFieldWrongMethodType() 1024 … boolean x = (boolean) hs.get(am, methodType(boolean.class, VarHandleTestMethodTypeChar.class)). in testInstanceFieldWrongMethodType() 1029 char x = (char) hs.get(am, methodType(char.class)). in testInstanceFieldWrongMethodType() 1033 …char x = (char) hs.get(am, methodType(char.class, VarHandleTestMethodTypeChar.class, Class.class)). in testInstanceFieldWrongMethodType() 1038 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { in testInstanceFieldWrongMethodType() 1041 hs.get(am, methodType(void.class, VarHandleTestMethodTypeChar.class, char.class)). in testInstanceFieldWrongMethodType() [all …]
|
D | VarHandleTestMethodTypeBoolean.java | 918 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testInstanceFieldWrongMethodType() 921 … boolean x = (boolean) hs.get(am, methodType(boolean.class, VarHandleTestMethodTypeBoolean.class)). in testInstanceFieldWrongMethodType() 925 boolean x = (boolean) hs.get(am, methodType(boolean.class, Class.class)). in testInstanceFieldWrongMethodType() 929 boolean x = (boolean) hs.get(am, methodType(boolean.class, int.class)). in testInstanceFieldWrongMethodType() 934 … Void x = (Void) hs.get(am, methodType(Void.class, VarHandleTestMethodTypeBoolean.class)). in testInstanceFieldWrongMethodType() 938 … int x = (int) hs.get(am, methodType(int.class, VarHandleTestMethodTypeBoolean.class)). in testInstanceFieldWrongMethodType() 943 boolean x = (boolean) hs.get(am, methodType(boolean.class)). in testInstanceFieldWrongMethodType() 947 …boolean x = (boolean) hs.get(am, methodType(boolean.class, VarHandleTestMethodTypeBoolean.class, C… in testInstanceFieldWrongMethodType() 952 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { in testInstanceFieldWrongMethodType() 955 … hs.get(am, methodType(void.class, VarHandleTestMethodTypeBoolean.class, boolean.class)). in testInstanceFieldWrongMethodType() [all …]
|
D | VarHandleTestAccessModeMethodNames.java | 48 map(am -> new Object[]{am}). in accessModesProvider() 53 public void testMethodName(VarHandle.AccessMode am) { in testMethodName() argument 54 assertEquals(am.methodName(), toMethodName(am.name())); in testMethodName() 88 public void testValueFromMethodName(VarHandle.AccessMode am) throws Exception { in testValueFromMethodName() argument 89 VarHandle.AccessMode other = VarHandle.AccessMode.valueFromMethodName(am.methodName()); in testValueFromMethodName() 90 assertEquals(am, other); in testValueFromMethodName()
|
D | VarHandleTestMethodTypeString.java | 650 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testInstanceFieldWrongMethodType() 653 … String x = (String) hs.get(am, methodType(String.class, VarHandleTestMethodTypeString.class)). in testInstanceFieldWrongMethodType() 657 String x = (String) hs.get(am, methodType(String.class, Class.class)). in testInstanceFieldWrongMethodType() 661 String x = (String) hs.get(am, methodType(String.class, int.class)). in testInstanceFieldWrongMethodType() 666 … Void x = (Void) hs.get(am, methodType(Void.class, VarHandleTestMethodTypeString.class)). in testInstanceFieldWrongMethodType() 670 … boolean x = (boolean) hs.get(am, methodType(boolean.class, VarHandleTestMethodTypeString.class)). in testInstanceFieldWrongMethodType() 675 String x = (String) hs.get(am, methodType(String.class)). in testInstanceFieldWrongMethodType() 679 …String x = (String) hs.get(am, methodType(String.class, VarHandleTestMethodTypeString.class, Class… in testInstanceFieldWrongMethodType() 684 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { in testInstanceFieldWrongMethodType() 687 … hs.get(am, methodType(void.class, VarHandleTestMethodTypeString.class, String.class)). in testInstanceFieldWrongMethodType() [all …]
|
D | VarHandleTestMethodHandleAccessString.java | 266 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_ADD)) { in testInstanceFieldUnsupported() 267 checkUOE(am, () -> { in testInstanceFieldUnsupported() 268 String r = (String) hs.get(am).invokeExact(recv, "foo"); in testInstanceFieldUnsupported() 272 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_BITWISE)) { in testInstanceFieldUnsupported() 273 checkUOE(am, () -> { in testInstanceFieldUnsupported() 274 String r = (String) hs.get(am).invokeExact(recv, "foo"); in testInstanceFieldUnsupported() 444 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_ADD)) { in testStaticFieldUnsupported() 445 checkUOE(am, () -> { in testStaticFieldUnsupported() 446 String r = (String) hs.get(am).invokeExact("foo"); in testStaticFieldUnsupported() 450 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_BITWISE)) { in testStaticFieldUnsupported() [all …]
|
D | VarHandleTestMethodHandleAccessDouble.java | 294 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_BITWISE)) { in testInstanceFieldUnsupported() 295 checkUOE(am, () -> { in testInstanceFieldUnsupported() 296 double r = (double) hs.get(am).invokeExact(recv, 1.0d); in testInstanceFieldUnsupported() 494 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_BITWISE)) { in testStaticFieldUnsupported() 495 checkUOE(am, () -> { in testStaticFieldUnsupported() 496 double r = (double) hs.get(am).invokeExact(1.0d); in testStaticFieldUnsupported() 699 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_BITWISE)) { in testArrayUnsupported() 700 checkUOE(am, () -> { in testArrayUnsupported() 701 double o = (double) hs.get(am).invokeExact(array, i, 1.0d); in testArrayUnsupported() 712 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleTestMethodHandleAccessFloat.java | 294 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_BITWISE)) { in testInstanceFieldUnsupported() 295 checkUOE(am, () -> { in testInstanceFieldUnsupported() 296 float r = (float) hs.get(am).invokeExact(recv, 1.0f); in testInstanceFieldUnsupported() 494 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_BITWISE)) { in testStaticFieldUnsupported() 495 checkUOE(am, () -> { in testStaticFieldUnsupported() 496 float r = (float) hs.get(am).invokeExact(1.0f); in testStaticFieldUnsupported() 699 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_BITWISE)) { in testArrayUnsupported() 700 checkUOE(am, () -> { in testArrayUnsupported() 701 float o = (float) hs.get(am).invokeExact(array, i, 1.0f); in testArrayUnsupported() 712 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testArrayIndexOutOfBounds() [all …]
|
D | X-VarHandleTestMethodHandleAccess.java.template | 382 for (TestAccessMode am : testAccessModesOfType(TestAccessType.COMPARE_AND_SET)) { 383 checkUOE(am, () -> { 384 boolean r = (boolean) hs.get(am).invokeExact(recv, $value1$, $value2$); 388 for (TestAccessMode am : testAccessModesOfType(TestAccessType.COMPARE_AND_EXCHANGE)) { 389 checkUOE(am, () -> { 390 $type$ r = ($type$) hs.get(am).invokeExact(recv, $value1$, $value2$); 394 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_SET)) { 395 checkUOE(am, () -> { 396 $type$ r = ($type$) hs.get(am).invokeExact(recv, $value1$); 402 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_ADD)) { [all …]
|
D | X-VarHandleTestMethodType.java.template | 1010 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { 1013 … $type$ x = ($type$) hs.get(am, methodType($type$.class, VarHandleTestMethodType$Type$.class)). 1017 $type$ x = ($type$) hs.get(am, methodType($type$.class, Class.class)). 1021 $type$ x = ($type$) hs.get(am, methodType($type$.class, int.class)). 1026 … Void x = (Void) hs.get(am, methodType(Void.class, VarHandleTestMethodType$Type$.class)). 1030 …$wrong_primitive_type$ x = ($wrong_primitive_type$) hs.get(am, methodType($wrong_primitive_type$.c… 1035 $type$ x = ($type$) hs.get(am, methodType($type$.class)). 1039 …$type$ x = ($type$) hs.get(am, methodType($type$.class, VarHandleTestMethodType$Type$.class, Class… 1044 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { 1047 … hs.get(am, methodType(void.class, VarHandleTestMethodType$Type$.class, $type$.class)). [all …]
|
D | VarHandleTestMethodHandleAccessBoolean.java | 349 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_ADD)) { in testInstanceFieldUnsupported() 350 checkUOE(am, () -> { in testInstanceFieldUnsupported() 351 boolean r = (boolean) hs.get(am).invokeExact(recv, true); in testInstanceFieldUnsupported() 605 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_ADD)) { in testStaticFieldUnsupported() 606 checkUOE(am, () -> { in testStaticFieldUnsupported() 607 boolean r = (boolean) hs.get(am).invokeExact(true); in testStaticFieldUnsupported() 866 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET_AND_ADD)) { in testArrayUnsupported() 867 checkUOE(am, () -> { in testArrayUnsupported() 868 boolean o = (boolean) hs.get(am).invokeExact(array, i, true); in testArrayUnsupported() 880 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleTestMethodHandleAccessChar.java | 946 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testArrayIndexOutOfBounds() 947 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 948 char x = (char) hs.get(am).invokeExact(array, ci); in testArrayIndexOutOfBounds() 952 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { in testArrayIndexOutOfBounds() 953 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 954 hs.get(am).invokeExact(array, ci, '\u0123'); in testArrayIndexOutOfBounds() 958 for (TestAccessMode am : testAccessModesOfType(TestAccessType.COMPARE_AND_SET)) { in testArrayIndexOutOfBounds() 959 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 960 boolean r = (boolean) hs.get(am).invokeExact(array, ci, '\u0123', '\u4567'); in testArrayIndexOutOfBounds() 964 for (TestAccessMode am : testAccessModesOfType(TestAccessType.COMPARE_AND_EXCHANGE)) { in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleTestMethodHandleAccessByte.java | 946 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testArrayIndexOutOfBounds() 947 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 948 byte x = (byte) hs.get(am).invokeExact(array, ci); in testArrayIndexOutOfBounds() 952 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { in testArrayIndexOutOfBounds() 953 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 954 hs.get(am).invokeExact(array, ci, (byte)0x01); in testArrayIndexOutOfBounds() 958 for (TestAccessMode am : testAccessModesOfType(TestAccessType.COMPARE_AND_SET)) { in testArrayIndexOutOfBounds() 959 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 960 boolean r = (boolean) hs.get(am).invokeExact(array, ci, (byte)0x01, (byte)0x23); in testArrayIndexOutOfBounds() 964 for (TestAccessMode am : testAccessModesOfType(TestAccessType.COMPARE_AND_EXCHANGE)) { in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleTestMethodHandleAccessShort.java | 946 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testArrayIndexOutOfBounds() 947 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 948 short x = (short) hs.get(am).invokeExact(array, ci); in testArrayIndexOutOfBounds() 952 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { in testArrayIndexOutOfBounds() 953 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 954 hs.get(am).invokeExact(array, ci, (short)0x0123); in testArrayIndexOutOfBounds() 958 for (TestAccessMode am : testAccessModesOfType(TestAccessType.COMPARE_AND_SET)) { in testArrayIndexOutOfBounds() 959 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 960 … boolean r = (boolean) hs.get(am).invokeExact(array, ci, (short)0x0123, (short)0x4567); in testArrayIndexOutOfBounds() 964 for (TestAccessMode am : testAccessModesOfType(TestAccessType.COMPARE_AND_EXCHANGE)) { in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleTestMethodHandleAccessLong.java | 946 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testArrayIndexOutOfBounds() 947 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 948 long x = (long) hs.get(am).invokeExact(array, ci); in testArrayIndexOutOfBounds() 952 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { in testArrayIndexOutOfBounds() 953 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 954 hs.get(am).invokeExact(array, ci, 0x0123456789ABCDEFL); in testArrayIndexOutOfBounds() 958 for (TestAccessMode am : testAccessModesOfType(TestAccessType.COMPARE_AND_SET)) { in testArrayIndexOutOfBounds() 959 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 960 … boolean r = (boolean) hs.get(am).invokeExact(array, ci, 0x0123456789ABCDEFL, 0xCAFEBABECAFEBABEL); in testArrayIndexOutOfBounds() 964 for (TestAccessMode am : testAccessModesOfType(TestAccessType.COMPARE_AND_EXCHANGE)) { in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleTestMethodHandleAccessInt.java | 946 for (TestAccessMode am : testAccessModesOfType(TestAccessType.GET)) { in testArrayIndexOutOfBounds() 947 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 948 int x = (int) hs.get(am).invokeExact(array, ci); in testArrayIndexOutOfBounds() 952 for (TestAccessMode am : testAccessModesOfType(TestAccessType.SET)) { in testArrayIndexOutOfBounds() 953 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 954 hs.get(am).invokeExact(array, ci, 0x01234567); in testArrayIndexOutOfBounds() 958 for (TestAccessMode am : testAccessModesOfType(TestAccessType.COMPARE_AND_SET)) { in testArrayIndexOutOfBounds() 959 checkIOOBE(am, () -> { in testArrayIndexOutOfBounds() 960 boolean r = (boolean) hs.get(am).invokeExact(array, ci, 0x01234567, 0x89ABCDEF); in testArrayIndexOutOfBounds() 964 for (TestAccessMode am : testAccessModesOfType(TestAccessType.COMPARE_AND_EXCHANGE)) { in testArrayIndexOutOfBounds() [all …]
|
D | VarHandleBaseTest.java | 311 MethodHandle apply(VarHandle vh, TestAccessMode am, MethodType mt) { in apply() argument 312 return f.apply(vh, am, mt); in apply() 363 for (TestAccessMode am : testAccessModes()) { in Handles() 364 amToType.put(am, vh.accessModeType(am.toAccessMode())); in Handles() 368 MethodHandle get(TestAccessMode am) { in get() argument 369 return get(am, amToType.get(am)); in get() 372 MethodHandle get(TestAccessMode am, MethodType mt) { in get() argument 373 AccessModeAndType amt = new AccessModeAndType(am, mt); in get() 375 amt, k -> f.apply(vh, am, mt)); in get()
|
D | VarHandleTestReflection.java | 48 map(am -> new Object[]{am}). in accessModesProvider()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | VarHandle.java | 1815 for (AccessMode am : values) { 1816 methodNameToAccessMode.put(am.methodName, am); in methodNameToAccessMode.put() argument 1852 AccessMode am = methodNameToAccessMode.get(methodName); in valueFromMethodName() local 1853 if (am != null) return am; in valueFromMethodName()
|
/libcore/metrictests/memory/ |
D | README | 40 …adb shell am instrument -w -e dumpdir ${RELATIVE_DIR} -e action ${DUMPER_ACTION} libcore.heapdumpe… 81 …adb shell am instrument -w -e dumpdir ${RELATIVE_DIR} -e action ${DUMPER_ACTION} libcore.heapdumpe…
|