Lines Matching refs:compareAndExchange
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()
107 assertThrowsASE(() -> vho.compareAndExchange(values, 0, ONE, new Object())); in testObjectArrayVarHandle()
108 assertThrowsASE(() -> vho.compareAndExchange(values, 0, ONE, "hello")); in testObjectArrayVarHandle()
109 assertThrowsNPE(() -> vho.compareAndExchange(null, 0, ONE, ZERO)); in testObjectArrayVarHandle()
110 assertThrowsWMTE(() -> vho.compareAndExchange(0, ZERO, ONE)); in testObjectArrayVarHandle()
111 assertThrowsWMTE(() -> vho.compareAndExchange(values, ONE, ZERO)); in testObjectArrayVarHandle()