[concurrency-interest] jcstress: weirdness in class AtomicLongArrayPairwiseTests

Aleksey Shipilev aleksey.shipilev at oracle.com
Wed Aug 21 14:54:50 EDT 2013

On 08/21/2013 09:58 PM, Andrew Haley wrote:
>     public static class DecAndGet_GetAndAdd extends AbstractTest {
>         @Override public void actor1(State s, LongResult2 r) { r.r1 = s.a.decrementAndGet(s.idx); }
>         @Override public void actor2(State s, LongResult2 r) { r.r2 = s.a.decrementAndGet(s.idx); }
>     }
> This has got to be wrong, surely?

Ah, copy-paste error, thanks. It had proliferated to multiple places in
AtomicX tests. I should switch to generated test cases for this area
some time soon.



More information about the Concurrency-interest mailing list