Home
last modified time | relevance | path

Searched refs:compareAndExchange (Results 1 – 9 of 9) sorted by relevance

/art/test/712-varhandle-invocations/src/
DVarHandleArrayTests.java58 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 …]
DVarHandleBadCoordinateTests.java298 vh.compareAndExchange(bytes, i, 777, 320); in doTest()
632 vh.compareAndExchange(buffer, i, 777, 320); in doTest()
DVarHandleTypeConversionTests.java1179 Widget rw = (Widget) vh.compareAndExchange(this, null, WidgetChild.ONE); in doTest()
/art/test/954-invoke-polymorphic-verifier/
Dexpected-stdout.txt12compareAndExchange(java.lang.invoke.VarHandle, java.lang.Object[]) failed to verify: void VarHandl…
/art/test/954-invoke-polymorphic-verifier/smali/
DVarHandleUnhappyAccessors.smali28 …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;)…
DVarHandleHappyAccessors.smali29 …invoke-polymorphic {v0, v1}, Ljava/lang/invoke/VarHandle;->compareAndExchange([Ljava/lang/Object;)…
/art/runtime/mirror/
Dvar_handle_test.cc384 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/
DMain.java155 return (t == QA.compareAndExchange(tasks, i, t, null)); in grabTask()
/art/test/160-read-barrier-stress/src/
DMain.java365 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()