Home
last modified time | relevance | path

Searched refs:weakCompareAndSet (Results 1 – 25 of 77) sorted by relevance

1234

/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicBooleanTest.java105 do {} while (!ai.weakCompareAndSet(true, false)); in testWeakCompareAndSet()
107 do {} while (!ai.weakCompareAndSet(false, false)); in testWeakCompareAndSet()
109 do {} while (!ai.weakCompareAndSet(false, true)); in testWeakCompareAndSet()
DAtomicReferenceTest.java106 do {} while (!ai.weakCompareAndSet(one, two)); in testWeakCompareAndSet()
107 do {} while (!ai.weakCompareAndSet(two, m4)); in testWeakCompareAndSet()
109 do {} while (!ai.weakCompareAndSet(m4, seven)); in testWeakCompareAndSet()
DAtomicReferenceArrayTest.java98 aa.weakCompareAndSet(index, null, null); in testIndexing()
179 do {} while (!aa.weakCompareAndSet(i, one, two)); in testWeakCompareAndSet()
180 do {} while (!aa.weakCompareAndSet(i, two, m4)); in testWeakCompareAndSet()
182 do {} while (!aa.weakCompareAndSet(i, m4, seven)); in testWeakCompareAndSet()
DAtomicLongTest.java112 do {} while (!ai.weakCompareAndSet(1, 2)); in testWeakCompareAndSet()
113 do {} while (!ai.weakCompareAndSet(2, -4)); in testWeakCompareAndSet()
115 do {} while (!ai.weakCompareAndSet(-4, 7)); in testWeakCompareAndSet()
DAtomicReferenceFieldUpdaterTest.java224 do {} while (!a.weakCompareAndSet(this, one, two)); in testWeakCompareAndSet()
225 do {} while (!a.weakCompareAndSet(this, two, m4)); in testWeakCompareAndSet()
227 do {} while (!a.weakCompareAndSet(this, m4, seven)); in testWeakCompareAndSet()
DAtomicIntegerTest.java110 do {} while (!ai.weakCompareAndSet(1, 2)); in testWeakCompareAndSet()
111 do {} while (!ai.weakCompareAndSet(2, -4)); in testWeakCompareAndSet()
113 do {} while (!ai.weakCompareAndSet(-4, 7)); in testWeakCompareAndSet()
DAtomicIntegerFieldUpdaterTest.java239 do {} while (!a.weakCompareAndSet(this, 1, 2)); in testWeakCompareAndSet()
240 do {} while (!a.weakCompareAndSet(this, 2, -4)); in testWeakCompareAndSet()
242 do {} while (!a.weakCompareAndSet(this, -4, 7)); in testWeakCompareAndSet()
DAtomicLongFieldUpdaterTest.java239 do {} while (!a.weakCompareAndSet(this, 1, 2)); in testWeakCompareAndSet()
240 do {} while (!a.weakCompareAndSet(this, 2, -4)); in testWeakCompareAndSet()
242 do {} while (!a.weakCompareAndSet(this, -4, 7)); in testWeakCompareAndSet()
DAtomicLongArrayTest.java82 aa.weakCompareAndSet(index, 1, 2); in testIndexing()
171 do {} while (!aa.weakCompareAndSet(i, 1, 2)); in testWeakCompareAndSet()
172 do {} while (!aa.weakCompareAndSet(i, 2, -4)); in testWeakCompareAndSet()
174 do {} while (!aa.weakCompareAndSet(i, -4, 7)); in testWeakCompareAndSet()
DAtomicIntegerArrayTest.java83 aa.weakCompareAndSet(index, 1, 2); in testIndexing()
172 do {} while (!aa.weakCompareAndSet(i, 1, 2)); in testWeakCompareAndSet()
173 do {} while (!aa.weakCompareAndSet(i, 2, -4)); in testWeakCompareAndSet()
175 do {} while (!aa.weakCompareAndSet(i, -4, 7)); in testWeakCompareAndSet()
DAtomicStampedReferenceTest.java149 do {} while (!ai.weakCompareAndSet(one, two, 0, 0)); in testWeakCompareAndSet()
153 do {} while (!ai.weakCompareAndSet(two, m3, 0, 1)); in testWeakCompareAndSet()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DAtomicBooleanTest.java128 do {} while (!ai.weakCompareAndSet(true, false)); in testWeakCompareAndSet()
130 do {} while (!ai.weakCompareAndSet(false, false)); in testWeakCompareAndSet()
132 do {} while (!ai.weakCompareAndSet(false, true)); in testWeakCompareAndSet()
DAtomicReferenceTest.java129 do {} while (!ai.weakCompareAndSet(one, two)); in testWeakCompareAndSet()
130 do {} while (!ai.weakCompareAndSet(two, m4)); in testWeakCompareAndSet()
132 do {} while (!ai.weakCompareAndSet(m4, seven)); in testWeakCompareAndSet()
DAtomicReferenceArrayTest.java121 aa.weakCompareAndSet(index, null, null); in testIndexing()
202 do {} while (!aa.weakCompareAndSet(i, one, two)); in testWeakCompareAndSet()
203 do {} while (!aa.weakCompareAndSet(i, two, m4)); in testWeakCompareAndSet()
205 do {} while (!aa.weakCompareAndSet(i, m4, seven)); in testWeakCompareAndSet()
DAtomicLongTest.java135 do {} while (!ai.weakCompareAndSet(1, 2)); in testWeakCompareAndSet()
136 do {} while (!ai.weakCompareAndSet(2, -4)); in testWeakCompareAndSet()
138 do {} while (!ai.weakCompareAndSet(-4, 7)); in testWeakCompareAndSet()
DAtomicIntegerTest.java133 do {} while (!ai.weakCompareAndSet(1, 2)); in testWeakCompareAndSet()
134 do {} while (!ai.weakCompareAndSet(2, -4)); in testWeakCompareAndSet()
136 do {} while (!ai.weakCompareAndSet(-4, 7)); in testWeakCompareAndSet()
DAtomicReferenceFieldUpdaterTest.java247 do {} while (!a.weakCompareAndSet(this, one, two)); in testWeakCompareAndSet()
248 do {} while (!a.weakCompareAndSet(this, two, m4)); in testWeakCompareAndSet()
250 do {} while (!a.weakCompareAndSet(this, m4, seven)); in testWeakCompareAndSet()
DAtomicIntegerArrayTest.java106 aa.weakCompareAndSet(index, 1, 2); in testIndexing()
195 do {} while (!aa.weakCompareAndSet(i, 1, 2)); in testWeakCompareAndSet()
196 do {} while (!aa.weakCompareAndSet(i, 2, -4)); in testWeakCompareAndSet()
198 do {} while (!aa.weakCompareAndSet(i, -4, 7)); in testWeakCompareAndSet()
DAtomicLongArrayTest.java105 aa.weakCompareAndSet(index, 1, 2); in testIndexing()
194 do {} while (!aa.weakCompareAndSet(i, 1, 2)); in testWeakCompareAndSet()
195 do {} while (!aa.weakCompareAndSet(i, 2, -4)); in testWeakCompareAndSet()
197 do {} while (!aa.weakCompareAndSet(i, -4, 7)); in testWeakCompareAndSet()
DAtomicIntegerFieldUpdaterTest.java262 do {} while (!a.weakCompareAndSet(this, 1, 2)); in testWeakCompareAndSet()
263 do {} while (!a.weakCompareAndSet(this, 2, -4)); in testWeakCompareAndSet()
265 do {} while (!a.weakCompareAndSet(this, -4, 7)); in testWeakCompareAndSet()
DAtomicLongFieldUpdaterTest.java262 do {} while (!a.weakCompareAndSet(this, 1, 2)); in testWeakCompareAndSet()
263 do {} while (!a.weakCompareAndSet(this, 2, -4)); in testWeakCompareAndSet()
265 do {} while (!a.weakCompareAndSet(this, -4, 7)); in testWeakCompareAndSet()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicBoolean.java124 public boolean weakCompareAndSet(boolean expectedValue, boolean newValue) { in weakCompareAndSet() method in AtomicBoolean
321 return VALUE.weakCompareAndSet(this, in weakCompareAndSetVolatile()
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleTestMethodTypeDouble.java385 boolean r = vh.weakCompareAndSet(null, 1.0d, 1.0d); in testInstanceFieldWrongMethodType()
388 boolean r = vh.weakCompareAndSet(Void.class, 1.0d, 1.0d); in testInstanceFieldWrongMethodType()
391 boolean r = vh.weakCompareAndSet(recv, Void.class, 1.0d); in testInstanceFieldWrongMethodType()
394 boolean r = vh.weakCompareAndSet(recv, 1.0d, Void.class); in testInstanceFieldWrongMethodType()
397 boolean r = vh.weakCompareAndSet(0, 1.0d, 1.0d); in testInstanceFieldWrongMethodType()
401 boolean r = vh.weakCompareAndSet(); in testInstanceFieldWrongMethodType()
404 boolean r = vh.weakCompareAndSet(recv, 1.0d, 1.0d, Void.class); in testInstanceFieldWrongMethodType()
1097 boolean r = vh.weakCompareAndSet(Void.class, 1.0d); in testStaticFieldWrongMethodType()
1100 boolean r = vh.weakCompareAndSet(1.0d, Void.class); in testStaticFieldWrongMethodType()
1104 boolean r = vh.weakCompareAndSet(); in testStaticFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeFloat.java385 boolean r = vh.weakCompareAndSet(null, 1.0f, 1.0f); in testInstanceFieldWrongMethodType()
388 boolean r = vh.weakCompareAndSet(Void.class, 1.0f, 1.0f); in testInstanceFieldWrongMethodType()
391 boolean r = vh.weakCompareAndSet(recv, Void.class, 1.0f); in testInstanceFieldWrongMethodType()
394 boolean r = vh.weakCompareAndSet(recv, 1.0f, Void.class); in testInstanceFieldWrongMethodType()
397 boolean r = vh.weakCompareAndSet(0, 1.0f, 1.0f); in testInstanceFieldWrongMethodType()
401 boolean r = vh.weakCompareAndSet(); in testInstanceFieldWrongMethodType()
404 boolean r = vh.weakCompareAndSet(recv, 1.0f, 1.0f, Void.class); in testInstanceFieldWrongMethodType()
1097 boolean r = vh.weakCompareAndSet(Void.class, 1.0f); in testStaticFieldWrongMethodType()
1100 boolean r = vh.weakCompareAndSet(1.0f, Void.class); in testStaticFieldWrongMethodType()
1104 boolean r = vh.weakCompareAndSet(); in testStaticFieldWrongMethodType()
[all …]
DVarHandleTestMethodTypeString.java385 boolean r = vh.weakCompareAndSet(null, "foo", "foo"); in testInstanceFieldWrongMethodType()
388 boolean r = vh.weakCompareAndSet(Void.class, "foo", "foo"); in testInstanceFieldWrongMethodType()
391 boolean r = vh.weakCompareAndSet(recv, Void.class, "foo"); in testInstanceFieldWrongMethodType()
394 boolean r = vh.weakCompareAndSet(recv, "foo", Void.class); in testInstanceFieldWrongMethodType()
397 boolean r = vh.weakCompareAndSet(0, "foo", "foo"); in testInstanceFieldWrongMethodType()
401 boolean r = vh.weakCompareAndSet(); in testInstanceFieldWrongMethodType()
404 boolean r = vh.weakCompareAndSet(recv, "foo", "foo", Void.class); in testInstanceFieldWrongMethodType()
975 boolean r = vh.weakCompareAndSet(Void.class, "foo"); in testStaticFieldWrongMethodType()
978 boolean r = vh.weakCompareAndSet("foo", Void.class); in testStaticFieldWrongMethodType()
982 boolean r = vh.weakCompareAndSet(); in testStaticFieldWrongMethodType()
[all …]

1234