Searched refs:compareAndExchange (Results 1 – 9 of 9) sorted by relevance
/art/test/712-varhandle-invocations/src/ |
D | VarHandleArrayTests.java | 58 assertEquals(ONE, (Integer) vh.compareAndExchange(values, 0, ONE, TWO)); in testIntegerArrayVarHandle() 60 assertEquals(TWO, (Integer) vh.compareAndExchange(values, 0, ONE, ZERO)); in testIntegerArrayVarHandle() 62 assertThrowsAIOBE(() -> vh.compareAndExchange(values, values.length, null, null)); in testIntegerArrayVarHandle() 63 assertThrowsCCE(() -> vh.compareAndExchange(values, 6, 6, new Object())); in testIntegerArrayVarHandle() 64 assertThrowsCCE(() -> vh.compareAndExchange((Object[]) values, 6, 6, new Object())); in testIntegerArrayVarHandle() 65 assertThrowsNPE(() -> vh.compareAndExchange((Integer[]) null, 6, ONE, ONE)); in testIntegerArrayVarHandle() 66 assertThrowsWMTE(() -> vh.compareAndExchange(values, null, 'c')); in testIntegerArrayVarHandle() 67 assertThrowsWMTE(() -> vh.compareAndExchange((Object[]) values, 5, null, 'c')); in testIntegerArrayVarHandle() 105 assertEquals(TWO, vho.compareAndExchange(values, 0, TWO, ZERO)); in testObjectArrayVarHandle() 106 assertThrowsAIOBE(() -> vho.compareAndExchange(values, values.length, ONE, TWO)); in testObjectArrayVarHandle() [all …]
|
D | VarHandleBadCoordinateTests.java | 298 vh.compareAndExchange(bytes, i, 777, 320); in doTest() 632 vh.compareAndExchange(buffer, i, 777, 320); in doTest()
|
D | VarHandleTypeConversionTests.java | 1179 Widget rw = (Widget) vh.compareAndExchange(this, null, WidgetChild.ONE); in doTest()
|
/art/test/954-invoke-polymorphic-verifier/ |
D | expected-stdout.txt | 12 …compareAndExchange(java.lang.invoke.VarHandle, java.lang.Object[]) failed to verify: void VarHandl…
|
/art/test/954-invoke-polymorphic-verifier/smali/ |
D | VarHandleUnhappyAccessors.smali | 28 …invoke-static {v0, v1}, LVarHandleUnhappyAccessors;->compareAndExchange(Ljava/lang/invoke/VarHandl… 38 .method public static compareAndExchange(Ljava/lang/invoke/VarHandle;[Ljava/lang/Object;)V 40 …invoke-polymorphic {p0, p1}, Ljava/lang/invoke/VarHandle;->compareAndExchange([Ljava/lang/Object;)…
|
D | VarHandleHappyAccessors.smali | 29 …invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->compareAndExchange([Ljava/lang/Object;)…
|
/art/runtime/mirror/ |
D | var_handle_test.cc | 384 Handle<MethodType> compareAndExchange = hs.NewHandle(MethodTypeOf("(Ljava/lang/Integer;II)I")); in TEST_F() local 399 EXPECT_TRUE(test_mode(VarHandle::AccessMode::kCompareAndExchange, compareAndExchange)); in TEST_F() 400 EXPECT_TRUE(test_mode(VarHandle::AccessMode::kCompareAndExchangeAcquire, compareAndExchange)); in TEST_F() 401 EXPECT_TRUE(test_mode(VarHandle::AccessMode::kCompareAndExchangeRelease, compareAndExchange)); in TEST_F() 581 Handle<MethodType> compareAndExchange = hs.NewHandle(MethodTypeOf("(II)I")); in TEST_F() local 596 EXPECT_TRUE(test_mode(VarHandle::AccessMode::kCompareAndExchange, compareAndExchange)); in TEST_F() 597 EXPECT_TRUE(test_mode(VarHandle::AccessMode::kCompareAndExchangeAcquire, compareAndExchange)); in TEST_F() 598 EXPECT_TRUE(test_mode(VarHandle::AccessMode::kCompareAndExchangeRelease, compareAndExchange)); in TEST_F() 749 Handle<MethodType> compareAndExchange = hs.NewHandle(MethodTypeOf( in TEST_F() local 766 EXPECT_TRUE(test_mode(VarHandle::AccessMode::kCompareAndExchange, compareAndExchange)); in TEST_F() [all …]
|
/art/test/719-varhandle-concurrency/src/ |
D | Main.java | 155 return (t == QA.compareAndExchange(tasks, i, t, null)); in grabTask()
|
/art/test/160-read-barrier-stress/src/ |
D | Main.java | 365 f0000, f0000vh.compareAndExchange(mf, f1024, f4444)); // Unchanged. in $noinline$testVarHandleCompareAndExchange() 367 f0001, f0001vh.compareAndExchange(mf, f1024, f4444)); // Unchanged. in $noinline$testVarHandleCompareAndExchange() 369 f1024, f1024vh.compareAndExchange(mf, f1024, f4444)); // Replaced. in $noinline$testVarHandleCompareAndExchange() 371 f4444, f1024vh.compareAndExchange(mf, f4444, f1024)); // Replaced. in $noinline$testVarHandleCompareAndExchange() 373 f1024, f1024vh.compareAndExchange(mf, f4444, f1024)); // Unchanged. in $noinline$testVarHandleCompareAndExchange() 375 f4444, f4444vh.compareAndExchange(mf, f1024, f4444)); // Unchanged. in $noinline$testVarHandleCompareAndExchange() 377 f4998, f4998vh.compareAndExchange(mf, f1024, f4444)); // Unchanged. in $noinline$testVarHandleCompareAndExchange() 379 f4999, f4999vh.compareAndExchange(mf, f1024, f4444)); // Unchanged. in $noinline$testVarHandleCompareAndExchange()
|