146 |
|
* Atomically sets the element at position {@code i} to the given |
147 |
|
* updated value if the current value {@code ==} the expected value. |
148 |
|
* |
149 |
< |
* <p>May <a href="package-summary.html#Spurious">fail spuriously</a> |
150 |
< |
* and does not provide ordering guarantees, so is only rarely an |
151 |
< |
* appropriate alternative to {@code compareAndSet}. |
149 |
> |
* <p><a href="package-summary.html#weakCompareAndSet">May fail |
150 |
> |
* spuriously and does not provide ordering guarantees</a>, so is |
151 |
> |
* only rarely an appropriate alternative to {@code compareAndSet}. |
152 |
|
* |
153 |
|
* @param i the index |
154 |
|
* @param expect the expected value |