/libcore/ojluni/src/test/java/lang/invoke/VarHandles/ |
D | VarHandleTestByteArrayAsLong.java | 52 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 …]
|
D | VarHandleTestByteArrayAsInt.java | 52 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 …]
|
D | VarHandleTestByteArrayAsFloat.java | 52 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 …]
|
D | VarHandleTestByteArrayAsDouble.java | 52 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 …]
|
D | X-VarHandleTestByteArrayView.java.template | 52 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 …]
|
D | VarHandleTestByteArrayAsShort.java | 52 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 …]
|
D | VarHandleTestByteArrayAsChar.java | 52 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 …]
|