[concurrency-interest] jcstress: weirdness in class AtomicLongArrayPairwiseTests

Andrew Haley aph at redhat.com
Wed Aug 21 13:58:01 EDT 2013

    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?


More information about the Concurrency-interest mailing list