/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AtomicBooleanTest.java | 105 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()
|
D | AtomicReferenceTest.java | 106 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()
|
D | AtomicReferenceArrayTest.java | 98 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()
|
D | AtomicLongTest.java | 112 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()
|
D | AtomicReferenceFieldUpdaterTest.java | 224 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()
|
D | AtomicIntegerTest.java | 110 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()
|
D | AtomicIntegerFieldUpdaterTest.java | 239 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()
|
D | AtomicLongFieldUpdaterTest.java | 239 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()
|
D | AtomicLongArrayTest.java | 82 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()
|
D | AtomicIntegerArrayTest.java | 83 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()
|
D | AtomicStampedReferenceTest.java | 149 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/ |
D | AtomicBooleanTest.java | 128 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()
|
D | AtomicReferenceTest.java | 129 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()
|
D | AtomicReferenceArrayTest.java | 121 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()
|
D | AtomicLongTest.java | 135 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()
|
D | AtomicIntegerTest.java | 133 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()
|
D | AtomicReferenceFieldUpdaterTest.java | 247 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()
|
D | AtomicIntegerArrayTest.java | 106 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()
|
D | AtomicLongArrayTest.java | 105 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()
|
D | AtomicIntegerFieldUpdaterTest.java | 262 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()
|
D | AtomicLongFieldUpdaterTest.java | 262 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/ |
D | AtomicBoolean.java | 124 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/ |
D | VarHandleTestMethodTypeDouble.java | 385 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 …]
|
D | VarHandleTestMethodTypeFloat.java | 385 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 …]
|
D | VarHandleTestMethodTypeString.java | 385 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 …]
|