Home
last modified time | relevance | path

Searched refs:recv (Results 1 – 25 of 35) sorted by relevance

12

/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleTestAccessBoolean.java235 static void testInstanceFinalField(VarHandleTestAccessBoolean recv, VarHandle vh) { in testInstanceFinalField() argument
238 boolean x = (boolean) vh.get(recv); in testInstanceFinalField()
245 boolean x = (boolean) vh.getVolatile(recv); in testInstanceFinalField()
251 boolean x = (boolean) vh.getAcquire(recv); in testInstanceFinalField()
257 boolean x = (boolean) vh.getOpaque(recv); in testInstanceFinalField()
262 static void testInstanceFinalFieldUnsupported(VarHandleTestAccessBoolean recv, VarHandle vh) { in testInstanceFinalFieldUnsupported() argument
264 vh.set(recv, false); in testInstanceFinalFieldUnsupported()
268 vh.setVolatile(recv, false); in testInstanceFinalFieldUnsupported()
272 vh.setRelease(recv, false); in testInstanceFinalFieldUnsupported()
276 vh.setOpaque(recv, false); in testInstanceFinalFieldUnsupported()
[all …]
DVarHandleTestAccessDouble.java235 static void testInstanceFinalField(VarHandleTestAccessDouble recv, VarHandle vh) { in testInstanceFinalField() argument
238 double x = (double) vh.get(recv); in testInstanceFinalField()
245 double x = (double) vh.getVolatile(recv); in testInstanceFinalField()
251 double x = (double) vh.getAcquire(recv); in testInstanceFinalField()
257 double x = (double) vh.getOpaque(recv); in testInstanceFinalField()
262 static void testInstanceFinalFieldUnsupported(VarHandleTestAccessDouble recv, VarHandle vh) { in testInstanceFinalFieldUnsupported() argument
264 vh.set(recv, 2.0d); in testInstanceFinalFieldUnsupported()
268 vh.setVolatile(recv, 2.0d); in testInstanceFinalFieldUnsupported()
272 vh.setRelease(recv, 2.0d); in testInstanceFinalFieldUnsupported()
276 vh.setOpaque(recv, 2.0d); in testInstanceFinalFieldUnsupported()
[all …]
DVarHandleTestAccessFloat.java235 static void testInstanceFinalField(VarHandleTestAccessFloat recv, VarHandle vh) { in testInstanceFinalField() argument
238 float x = (float) vh.get(recv); in testInstanceFinalField()
245 float x = (float) vh.getVolatile(recv); in testInstanceFinalField()
251 float x = (float) vh.getAcquire(recv); in testInstanceFinalField()
257 float x = (float) vh.getOpaque(recv); in testInstanceFinalField()
262 static void testInstanceFinalFieldUnsupported(VarHandleTestAccessFloat recv, VarHandle vh) { in testInstanceFinalFieldUnsupported() argument
264 vh.set(recv, 2.0f); in testInstanceFinalFieldUnsupported()
268 vh.setVolatile(recv, 2.0f); in testInstanceFinalFieldUnsupported()
272 vh.setRelease(recv, 2.0f); in testInstanceFinalFieldUnsupported()
276 vh.setOpaque(recv, 2.0f); in testInstanceFinalFieldUnsupported()
[all …]
DVarHandleTestAccessByte.java235 static void testInstanceFinalField(VarHandleTestAccessByte recv, VarHandle vh) { in testInstanceFinalField() argument
238 byte x = (byte) vh.get(recv); in testInstanceFinalField()
245 byte x = (byte) vh.getVolatile(recv); in testInstanceFinalField()
251 byte x = (byte) vh.getAcquire(recv); in testInstanceFinalField()
257 byte x = (byte) vh.getOpaque(recv); in testInstanceFinalField()
262 static void testInstanceFinalFieldUnsupported(VarHandleTestAccessByte recv, VarHandle vh) { in testInstanceFinalFieldUnsupported() argument
264 vh.set(recv, (byte)0x23); in testInstanceFinalFieldUnsupported()
268 vh.setVolatile(recv, (byte)0x23); in testInstanceFinalFieldUnsupported()
272 vh.setRelease(recv, (byte)0x23); in testInstanceFinalFieldUnsupported()
276 vh.setOpaque(recv, (byte)0x23); in testInstanceFinalFieldUnsupported()
[all …]
DVarHandleTestAccessInt.java235 static void testInstanceFinalField(VarHandleTestAccessInt recv, VarHandle vh) { in testInstanceFinalField() argument
238 int x = (int) vh.get(recv); in testInstanceFinalField()
245 int x = (int) vh.getVolatile(recv); in testInstanceFinalField()
251 int x = (int) vh.getAcquire(recv); in testInstanceFinalField()
257 int x = (int) vh.getOpaque(recv); in testInstanceFinalField()
262 static void testInstanceFinalFieldUnsupported(VarHandleTestAccessInt recv, VarHandle vh) { in testInstanceFinalFieldUnsupported() argument
264 vh.set(recv, 0x89ABCDEF); in testInstanceFinalFieldUnsupported()
268 vh.setVolatile(recv, 0x89ABCDEF); in testInstanceFinalFieldUnsupported()
272 vh.setRelease(recv, 0x89ABCDEF); in testInstanceFinalFieldUnsupported()
276 vh.setOpaque(recv, 0x89ABCDEF); in testInstanceFinalFieldUnsupported()
[all …]
DVarHandleTestAccessShort.java235 static void testInstanceFinalField(VarHandleTestAccessShort recv, VarHandle vh) { in testInstanceFinalField() argument
238 short x = (short) vh.get(recv); in testInstanceFinalField()
245 short x = (short) vh.getVolatile(recv); in testInstanceFinalField()
251 short x = (short) vh.getAcquire(recv); in testInstanceFinalField()
257 short x = (short) vh.getOpaque(recv); in testInstanceFinalField()
262 static void testInstanceFinalFieldUnsupported(VarHandleTestAccessShort recv, VarHandle vh) { in testInstanceFinalFieldUnsupported() argument
264 vh.set(recv, (short)0x4567); in testInstanceFinalFieldUnsupported()
268 vh.setVolatile(recv, (short)0x4567); in testInstanceFinalFieldUnsupported()
272 vh.setRelease(recv, (short)0x4567); in testInstanceFinalFieldUnsupported()
276 vh.setOpaque(recv, (short)0x4567); in testInstanceFinalFieldUnsupported()
[all …]
DVarHandleTestAccessLong.java235 static void testInstanceFinalField(VarHandleTestAccessLong recv, VarHandle vh) { in testInstanceFinalField() argument
238 long x = (long) vh.get(recv); in testInstanceFinalField()
245 long x = (long) vh.getVolatile(recv); in testInstanceFinalField()
251 long x = (long) vh.getAcquire(recv); in testInstanceFinalField()
257 long x = (long) vh.getOpaque(recv); in testInstanceFinalField()
262 static void testInstanceFinalFieldUnsupported(VarHandleTestAccessLong recv, VarHandle vh) { in testInstanceFinalFieldUnsupported() argument
264 vh.set(recv, 0xCAFEBABECAFEBABEL); in testInstanceFinalFieldUnsupported()
268 vh.setVolatile(recv, 0xCAFEBABECAFEBABEL); in testInstanceFinalFieldUnsupported()
272 vh.setRelease(recv, 0xCAFEBABECAFEBABEL); in testInstanceFinalFieldUnsupported()
276 vh.setOpaque(recv, 0xCAFEBABECAFEBABEL); in testInstanceFinalFieldUnsupported()
[all …]
DVarHandleTestAccessChar.java235 static void testInstanceFinalField(VarHandleTestAccessChar recv, VarHandle vh) { in testInstanceFinalField() argument
238 char x = (char) vh.get(recv); in testInstanceFinalField()
245 char x = (char) vh.getVolatile(recv); in testInstanceFinalField()
251 char x = (char) vh.getAcquire(recv); in testInstanceFinalField()
257 char x = (char) vh.getOpaque(recv); in testInstanceFinalField()
262 static void testInstanceFinalFieldUnsupported(VarHandleTestAccessChar recv, VarHandle vh) { in testInstanceFinalFieldUnsupported() argument
264 vh.set(recv, '\u4567'); in testInstanceFinalFieldUnsupported()
268 vh.setVolatile(recv, '\u4567'); in testInstanceFinalFieldUnsupported()
272 vh.setRelease(recv, '\u4567'); in testInstanceFinalFieldUnsupported()
276 vh.setOpaque(recv, '\u4567'); in testInstanceFinalFieldUnsupported()
[all …]
DVarHandleTestAccessString.java242 static void testInstanceFinalField(VarHandleTestAccessString recv, VarHandle vh) { in testInstanceFinalField() argument
245 String x = (String) vh.get(recv); in testInstanceFinalField()
252 String x = (String) vh.getVolatile(recv); in testInstanceFinalField()
258 String x = (String) vh.getAcquire(recv); in testInstanceFinalField()
264 String x = (String) vh.getOpaque(recv); in testInstanceFinalField()
269 static void testInstanceFinalFieldUnsupported(VarHandleTestAccessString recv, VarHandle vh) { in testInstanceFinalFieldUnsupported() argument
271 vh.set(recv, "bar"); in testInstanceFinalFieldUnsupported()
275 vh.setVolatile(recv, "bar"); in testInstanceFinalFieldUnsupported()
279 vh.setRelease(recv, "bar"); in testInstanceFinalFieldUnsupported()
283 vh.setOpaque(recv, "bar"); in testInstanceFinalFieldUnsupported()
[all …]
DVarHandleTestMethodHandleAccessChar.java124 …static void testInstanceField(VarHandleTestMethodHandleAccessChar recv, Handles hs) throws Throwab… in testInstanceField() argument
127 hs.get(TestAccessMode.SET).invokeExact(recv, '\u0123'); in testInstanceField()
128 char x = (char) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, '\u4567'); in testInstanceField()
136 char x = (char) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, '\u0123'); in testInstanceField()
143 char x = (char) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, '\u4567'); in testInstanceField()
150 char x = (char) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, '\u0123'); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessByte.java124 …static void testInstanceField(VarHandleTestMethodHandleAccessByte recv, Handles hs) throws Throwab… in testInstanceField() argument
127 hs.get(TestAccessMode.SET).invokeExact(recv, (byte)0x01); in testInstanceField()
128 byte x = (byte) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, (byte)0x23); in testInstanceField()
136 byte x = (byte) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, (byte)0x01); in testInstanceField()
143 byte x = (byte) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, (byte)0x23); in testInstanceField()
150 byte x = (byte) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, (byte)0x01); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessShort.java124 …static void testInstanceField(VarHandleTestMethodHandleAccessShort recv, Handles hs) throws Throwa… in testInstanceField() argument
127 hs.get(TestAccessMode.SET).invokeExact(recv, (short)0x0123); in testInstanceField()
128 short x = (short) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, (short)0x4567); in testInstanceField()
136 short x = (short) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, (short)0x0123); in testInstanceField()
143 short x = (short) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, (short)0x4567); in testInstanceField()
150 short x = (short) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, (short)0x0123); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessLong.java124 …static void testInstanceField(VarHandleTestMethodHandleAccessLong recv, Handles hs) throws Throwab… in testInstanceField() argument
127 hs.get(TestAccessMode.SET).invokeExact(recv, 0x0123456789ABCDEFL); in testInstanceField()
128 long x = (long) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, 0xCAFEBABECAFEBABEL); in testInstanceField()
136 long x = (long) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, 0x0123456789ABCDEFL); in testInstanceField()
143 long x = (long) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, 0xCAFEBABECAFEBABEL); in testInstanceField()
150 long x = (long) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, 0x0123456789ABCDEFL); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessInt.java124 …static void testInstanceField(VarHandleTestMethodHandleAccessInt recv, Handles hs) throws Throwabl… in testInstanceField() argument
127 hs.get(TestAccessMode.SET).invokeExact(recv, 0x01234567); in testInstanceField()
128 int x = (int) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, 0x89ABCDEF); in testInstanceField()
136 int x = (int) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, 0x01234567); in testInstanceField()
143 int x = (int) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, 0x89ABCDEF); in testInstanceField()
150 int x = (int) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, 0x01234567); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessBoolean.java124 …static void testInstanceField(VarHandleTestMethodHandleAccessBoolean recv, Handles hs) throws Thro… in testInstanceField() argument
127 hs.get(TestAccessMode.SET).invokeExact(recv, true); in testInstanceField()
128 boolean x = (boolean) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, false); in testInstanceField()
136 boolean x = (boolean) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, true); in testInstanceField()
143 boolean x = (boolean) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, false); in testInstanceField()
150 boolean x = (boolean) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, true); in testInstanceField()
[all …]
DVarHandleTestMethodTypeLong.java129 …static void testInstanceFieldWrongMethodType(VarHandleTestMethodTypeLong recv, VarHandle vh) throw… in testInstanceFieldWrongMethodType() argument
143 Void x = (Void) vh.get(recv); in testInstanceFieldWrongMethodType()
146 boolean x = (boolean) vh.get(recv); in testInstanceFieldWrongMethodType()
153 long x = (long) vh.get(recv, Void.class); in testInstanceFieldWrongMethodType()
166 vh.set(recv, Void.class); in testInstanceFieldWrongMethodType()
176 vh.set(recv, 0x0123456789ABCDEFL, Void.class); in testInstanceFieldWrongMethodType()
193 Void x = (Void) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
196 boolean x = (boolean) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
203 long x = (long) vh.getVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
216 vh.setVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeInt.java129 …static void testInstanceFieldWrongMethodType(VarHandleTestMethodTypeInt recv, VarHandle vh) throws… in testInstanceFieldWrongMethodType() argument
143 Void x = (Void) vh.get(recv); in testInstanceFieldWrongMethodType()
146 boolean x = (boolean) vh.get(recv); in testInstanceFieldWrongMethodType()
153 int x = (int) vh.get(recv, Void.class); in testInstanceFieldWrongMethodType()
166 vh.set(recv, Void.class); in testInstanceFieldWrongMethodType()
176 vh.set(recv, 0x01234567, Void.class); in testInstanceFieldWrongMethodType()
193 Void x = (Void) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
196 boolean x = (boolean) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
203 int x = (int) vh.getVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
216 vh.setVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeByte.java129 …static void testInstanceFieldWrongMethodType(VarHandleTestMethodTypeByte recv, VarHandle vh) throw… in testInstanceFieldWrongMethodType() argument
143 Void x = (Void) vh.get(recv); in testInstanceFieldWrongMethodType()
146 boolean x = (boolean) vh.get(recv); in testInstanceFieldWrongMethodType()
153 byte x = (byte) vh.get(recv, Void.class); in testInstanceFieldWrongMethodType()
166 vh.set(recv, Void.class); in testInstanceFieldWrongMethodType()
176 vh.set(recv, (byte)0x01, Void.class); in testInstanceFieldWrongMethodType()
193 Void x = (Void) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
196 boolean x = (boolean) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
203 byte x = (byte) vh.getVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
216 vh.setVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeShort.java129 …static void testInstanceFieldWrongMethodType(VarHandleTestMethodTypeShort recv, VarHandle vh) thro… in testInstanceFieldWrongMethodType() argument
143 Void x = (Void) vh.get(recv); in testInstanceFieldWrongMethodType()
146 boolean x = (boolean) vh.get(recv); in testInstanceFieldWrongMethodType()
153 short x = (short) vh.get(recv, Void.class); in testInstanceFieldWrongMethodType()
166 vh.set(recv, Void.class); in testInstanceFieldWrongMethodType()
176 vh.set(recv, (short)0x0123, Void.class); in testInstanceFieldWrongMethodType()
193 Void x = (Void) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
196 boolean x = (boolean) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
203 short x = (short) vh.getVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
216 vh.setVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeChar.java129 …static void testInstanceFieldWrongMethodType(VarHandleTestMethodTypeChar recv, VarHandle vh) throw… in testInstanceFieldWrongMethodType() argument
143 Void x = (Void) vh.get(recv); in testInstanceFieldWrongMethodType()
146 boolean x = (boolean) vh.get(recv); in testInstanceFieldWrongMethodType()
153 char x = (char) vh.get(recv, Void.class); in testInstanceFieldWrongMethodType()
166 vh.set(recv, Void.class); in testInstanceFieldWrongMethodType()
176 vh.set(recv, '\u0123', Void.class); in testInstanceFieldWrongMethodType()
193 Void x = (Void) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
196 boolean x = (boolean) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
203 char x = (char) vh.getVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
216 vh.setVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeBoolean.java129 …static void testInstanceFieldWrongMethodType(VarHandleTestMethodTypeBoolean recv, VarHandle vh) th… in testInstanceFieldWrongMethodType() argument
143 Void x = (Void) vh.get(recv); in testInstanceFieldWrongMethodType()
146 int x = (int) vh.get(recv); in testInstanceFieldWrongMethodType()
153 boolean x = (boolean) vh.get(recv, Void.class); in testInstanceFieldWrongMethodType()
166 vh.set(recv, Void.class); in testInstanceFieldWrongMethodType()
176 vh.set(recv, true, Void.class); in testInstanceFieldWrongMethodType()
193 Void x = (Void) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
196 int x = (int) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
203 boolean x = (boolean) vh.getVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
216 vh.setVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeDouble.java129 …static void testInstanceFieldWrongMethodType(VarHandleTestMethodTypeDouble recv, VarHandle vh) thr… in testInstanceFieldWrongMethodType() argument
143 Void x = (Void) vh.get(recv); in testInstanceFieldWrongMethodType()
146 boolean x = (boolean) vh.get(recv); in testInstanceFieldWrongMethodType()
153 double x = (double) vh.get(recv, Void.class); in testInstanceFieldWrongMethodType()
166 vh.set(recv, Void.class); in testInstanceFieldWrongMethodType()
176 vh.set(recv, 1.0d, Void.class); in testInstanceFieldWrongMethodType()
193 Void x = (Void) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
196 boolean x = (boolean) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
203 double x = (double) vh.getVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
216 vh.setVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeFloat.java129 …static void testInstanceFieldWrongMethodType(VarHandleTestMethodTypeFloat recv, VarHandle vh) thro… in testInstanceFieldWrongMethodType() argument
143 Void x = (Void) vh.get(recv); in testInstanceFieldWrongMethodType()
146 boolean x = (boolean) vh.get(recv); in testInstanceFieldWrongMethodType()
153 float x = (float) vh.get(recv, Void.class); in testInstanceFieldWrongMethodType()
166 vh.set(recv, Void.class); in testInstanceFieldWrongMethodType()
176 vh.set(recv, 1.0f, Void.class); in testInstanceFieldWrongMethodType()
193 Void x = (Void) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
196 boolean x = (boolean) vh.getVolatile(recv); in testInstanceFieldWrongMethodType()
203 float x = (float) vh.getVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
216 vh.setVolatile(recv, Void.class); in testInstanceFieldWrongMethodType()
[all …]
DVarHandleTestMethodHandleAccessDouble.java124 …static void testInstanceField(VarHandleTestMethodHandleAccessDouble recv, Handles hs) throws Throw… in testInstanceField() argument
127 hs.get(TestAccessMode.SET).invokeExact(recv, 1.0d); in testInstanceField()
128 double x = (double) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, 2.0d); in testInstanceField()
136 double x = (double) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, 1.0d); in testInstanceField()
143 double x = (double) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, 2.0d); in testInstanceField()
150 double x = (double) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, 1.0d); in testInstanceField()
[all …]
DVarHandleTestMethodHandleAccessFloat.java124 …static void testInstanceField(VarHandleTestMethodHandleAccessFloat recv, Handles hs) throws Throwa… in testInstanceField() argument
127 hs.get(TestAccessMode.SET).invokeExact(recv, 1.0f); in testInstanceField()
128 float x = (float) hs.get(TestAccessMode.GET).invokeExact(recv); in testInstanceField()
135 hs.get(TestAccessMode.SET_VOLATILE).invokeExact(recv, 2.0f); in testInstanceField()
136 float x = (float) hs.get(TestAccessMode.GET_VOLATILE).invokeExact(recv); in testInstanceField()
142 hs.get(TestAccessMode.SET_RELEASE).invokeExact(recv, 1.0f); in testInstanceField()
143 float x = (float) hs.get(TestAccessMode.GET_ACQUIRE).invokeExact(recv); in testInstanceField()
149 hs.get(TestAccessMode.SET_OPAQUE).invokeExact(recv, 2.0f); in testInstanceField()
150 float x = (float) hs.get(TestAccessMode.GET_OPAQUE).invokeExact(recv); in testInstanceField()
154 hs.get(TestAccessMode.SET).invokeExact(recv, 1.0f); in testInstanceField()
[all …]

12