Home
last modified time | relevance | path

Searched refs:VALUE_1 (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleTestByteArrayAsLong.java52 static final long VALUE_1 = 0x0102030405060708L; field in VarHandleTestByteArrayAsLong
214 vh.set(array, ci, VALUE_1); in testArrayNPE()
230 vh.setVolatile(array, ci, VALUE_1); in testArrayNPE()
234 vh.setRelease(array, ci, VALUE_1); in testArrayNPE()
238 vh.setOpaque(array, ci, VALUE_1); in testArrayNPE()
242 boolean r = vh.compareAndSet(array, ci, VALUE_1, VALUE_2); in testArrayNPE()
246 long r = (long) vh.compareAndExchange(array, ci, VALUE_2, VALUE_1); in testArrayNPE()
250 long r = (long) vh.compareAndExchangeAcquire(array, ci, VALUE_2, VALUE_1); in testArrayNPE()
254 long r = (long) vh.compareAndExchangeRelease(array, ci, VALUE_2, VALUE_1); in testArrayNPE()
258 boolean r = vh.weakCompareAndSetPlain(array, ci, VALUE_1, VALUE_2); in testArrayNPE()
[all …]
DVarHandleTestByteArrayAsInt.java52 static final int VALUE_1 = 0x01020304; field in VarHandleTestByteArrayAsInt
214 vh.set(array, ci, VALUE_1); in testArrayNPE()
230 vh.setVolatile(array, ci, VALUE_1); in testArrayNPE()
234 vh.setRelease(array, ci, VALUE_1); in testArrayNPE()
238 vh.setOpaque(array, ci, VALUE_1); in testArrayNPE()
242 boolean r = vh.compareAndSet(array, ci, VALUE_1, VALUE_2); in testArrayNPE()
246 int r = (int) vh.compareAndExchange(array, ci, VALUE_2, VALUE_1); in testArrayNPE()
250 int r = (int) vh.compareAndExchangeAcquire(array, ci, VALUE_2, VALUE_1); in testArrayNPE()
254 int r = (int) vh.compareAndExchangeRelease(array, ci, VALUE_2, VALUE_1); in testArrayNPE()
258 boolean r = vh.weakCompareAndSetPlain(array, ci, VALUE_1, VALUE_2); in testArrayNPE()
[all …]
DVarHandleTestByteArrayAsFloat.java52 static final float VALUE_1 = 0x01020304; field in VarHandleTestByteArrayAsFloat
214 vh.set(array, ci, VALUE_1); in testArrayNPE()
230 vh.setVolatile(array, ci, VALUE_1); in testArrayNPE()
234 vh.setRelease(array, ci, VALUE_1); in testArrayNPE()
238 vh.setOpaque(array, ci, VALUE_1); in testArrayNPE()
242 boolean r = vh.compareAndSet(array, ci, VALUE_1, VALUE_2); in testArrayNPE()
246 float r = (float) vh.compareAndExchange(array, ci, VALUE_2, VALUE_1); in testArrayNPE()
250 float r = (float) vh.compareAndExchangeAcquire(array, ci, VALUE_2, VALUE_1); in testArrayNPE()
254 float r = (float) vh.compareAndExchangeRelease(array, ci, VALUE_2, VALUE_1); in testArrayNPE()
258 boolean r = vh.weakCompareAndSetPlain(array, ci, VALUE_1, VALUE_2); in testArrayNPE()
[all …]
DVarHandleTestByteArrayAsDouble.java52 static final double VALUE_1 = 0x0102030405060708L; field in VarHandleTestByteArrayAsDouble
214 vh.set(array, ci, VALUE_1); in testArrayNPE()
230 vh.setVolatile(array, ci, VALUE_1); in testArrayNPE()
234 vh.setRelease(array, ci, VALUE_1); in testArrayNPE()
238 vh.setOpaque(array, ci, VALUE_1); in testArrayNPE()
242 boolean r = vh.compareAndSet(array, ci, VALUE_1, VALUE_2); in testArrayNPE()
246 double r = (double) vh.compareAndExchange(array, ci, VALUE_2, VALUE_1); in testArrayNPE()
250 double r = (double) vh.compareAndExchangeAcquire(array, ci, VALUE_2, VALUE_1); in testArrayNPE()
254 double r = (double) vh.compareAndExchangeRelease(array, ci, VALUE_2, VALUE_1); in testArrayNPE()
258 boolean r = vh.weakCompareAndSetPlain(array, ci, VALUE_1, VALUE_2); in testArrayNPE()
[all …]
DX-VarHandleTestByteArrayView.java.template52 static final $type$ VALUE_1 = $value1$;
246 vh.set(array, ci, VALUE_1);
262 vh.setVolatile(array, ci, VALUE_1);
266 vh.setRelease(array, ci, VALUE_1);
270 vh.setOpaque(array, ci, VALUE_1);
275 boolean r = vh.compareAndSet(array, ci, VALUE_1, VALUE_2);
279 $type$ r = ($type$) vh.compareAndExchange(array, ci, VALUE_2, VALUE_1);
283 $type$ r = ($type$) vh.compareAndExchangeAcquire(array, ci, VALUE_2, VALUE_1);
287 $type$ r = ($type$) vh.compareAndExchangeRelease(array, ci, VALUE_2, VALUE_1);
291 boolean r = vh.weakCompareAndSetPlain(array, ci, VALUE_1, VALUE_2);
[all …]
DVarHandleTestByteArrayAsShort.java52 static final short VALUE_1 = (short)0x0102; field in VarHandleTestByteArrayAsShort
214 vh.set(array, ci, VALUE_1); in testArrayNPE()
230 vh.setVolatile(array, ci, VALUE_1); in testArrayNPE()
234 vh.setRelease(array, ci, VALUE_1); in testArrayNPE()
238 vh.setOpaque(array, ci, VALUE_1); in testArrayNPE()
255 vh.set(array, ci, VALUE_1); in testArrayNPE()
271 vh.setVolatile(array, ci, VALUE_1); in testArrayNPE()
275 vh.setRelease(array, ci, VALUE_1); in testArrayNPE()
279 vh.setOpaque(array, ci, VALUE_1); in testArrayNPE()
292 boolean r = vh.compareAndSet(array, ci, VALUE_1, VALUE_2); in testArrayUnsupported()
[all …]
DVarHandleTestByteArrayAsChar.java52 static final char VALUE_1 = (char)0x0102; field in VarHandleTestByteArrayAsChar
214 vh.set(array, ci, VALUE_1); in testArrayNPE()
230 vh.setVolatile(array, ci, VALUE_1); in testArrayNPE()
234 vh.setRelease(array, ci, VALUE_1); in testArrayNPE()
238 vh.setOpaque(array, ci, VALUE_1); in testArrayNPE()
255 vh.set(array, ci, VALUE_1); in testArrayNPE()
271 vh.setVolatile(array, ci, VALUE_1); in testArrayNPE()
275 vh.setRelease(array, ci, VALUE_1); in testArrayNPE()
279 vh.setOpaque(array, ci, VALUE_1); in testArrayNPE()
292 boolean r = vh.compareAndSet(array, ci, VALUE_1, VALUE_2); in testArrayUnsupported()
[all …]