view tests-custom/src/main/resources/org/openjdk/jcstress/desc/atomic-long.xml @ 66:d7f7a93800e4

Rewire the grading levels: introduce ACCEPTABLE_SPEC, remove REQUIRED, renames.
author shade
date Thu, 28 Nov 2013 19:10:32 +0400
parents 08da99c27fa4
children da2ebe220a00
line wrap: on
line source
<!--

    Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

    This code is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License version 2 only, as
    published by the Free Software Foundation.  Oracle designates this
    particular file as subject to the "Classpath" exception as provided
    by Oracle in the LICENSE file that accompanied this code.

    This code is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    version 2 for more details (a copy is included in the LICENSE file that
    accompanied this code).

    You should have received a copy of the GNU General Public License version
    2 along with this work; if not, write to the Free Software Foundation,
    Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

    Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    or visit www.oracle.com if you need additional information or have any
    questions.

-->
<testsuite>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongInitialValueTest">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>
            Tests the visibility of AtomicLong initial value.
        </description>
        <case>
            <match>[0]</match>
            <expect>ACCEPTABLE</expect>
            <description>
                Possible to see the default value, since the instance is published via race.
            </description>
            <refs>
                <url>http://cs.oswego.edu/pipermail/concurrency-interest/2013-November/011951.html</url>
            </refs>
        </case>
        <case>
            <match>[1]</match>
            <expect>ACCEPTABLE</expect>
            <description>
                Required to see the initial value.
            </description>
        </case>
        <case>
            <match>[-1]</match>
            <expect>ACCEPTABLE</expect>
            <description>
                Seeing the null AtomicLong. This is a legal race.
            </description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>
                Other cases are not expected.
            </description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$AddAndGet_AddAndGet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[10, 5]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$AddAndGet_DecAndGet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 4]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[4, -1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$AddAndGet_CAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[25, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$AddAndGet_WCAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution, or T2[fail] -> T1 execution.</description>
        </case>
        <case>
            <match>[25, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$AddAndGet_GetAndAdd">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 5]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[10, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$AddAndGet_GetAndDec">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 5]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[4, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$AddAndGet_GetAndInc">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 5]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[6, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$AddAndGet_GetAndSet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 5]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[15, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$AddAndGet_IncAndGet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 6]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[6, 1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$AddAndGet_Set">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[15, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$DecAndGet_CAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[-1, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[19, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$DecAndGet_WCAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[-1, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution, or T2[fail] -> T1 execution.</description>
        </case>
        <case>
            <match>[19, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$DecAndGet_DecAndGet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[-1, -2]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[-2, -1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$DecAndGet_GetAndAdd">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[-1, -1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[4, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$DecAndGet_GetAndDec">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[-1, -1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[-2, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$DecAndGet_GetAndInc">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[-1, -1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[0, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$DecAndGet_GetAndSet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[-1, -1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[9, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$DecAndGet_IncAndGet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[-1, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[0, 1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$DecAndGet_Set">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[-1, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[9, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndAdd_CAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[20, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndAdd_WCAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution, or T2[fail] -> T1 execution.</description>
        </case>
        <case>
            <match>[20, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndAdd_GetAndAdd">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 5]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[5, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndAdd_GetAndDec">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 5]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[-1, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndAdd_GetAndInc">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 5]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[1, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndAdd_GetAndSet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 5]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[10, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndAdd_IncAndGet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 6]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[1, 1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndAdd_Set">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[10, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndDec_CAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[20, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndDec_WCAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution, or T2[fail] -> T1 execution.</description>
        </case>
        <case>
            <match>[20, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndDec_GetAndDec">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, -1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[-1, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndDec_GetAndInc">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, -1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[1, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndDec_GetAndSet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, -1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[10, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndDec_IncAndGet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[1, 1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndDec_Set">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[10, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndInc_CAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[20, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndInc_WCAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution, or T2[fail] -> T1 execution.</description>
        </case>
        <case>
            <match>[20, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndInc_GetAndInc">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[1, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndInc_GetAndSet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[10, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndInc_IncAndGet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 2]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[1, 1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndInc_Set">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[10, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndSet_CAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[20, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndSet_WCAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution, or T2[fail] -> T1 execution.</description>
        </case>
        <case>
            <match>[20, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndSet_GetAndSet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 5]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[10, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndSet_IncAndGet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 6]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[1, 1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$GetAndSet_Set">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[0, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[10, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$IncAndGet_CAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[1, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[21, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$IncAndGet_WCAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[1, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution, T2[fail] -> T1 execution.</description>
        </case>
        <case>
            <match>[21, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$IncAndGet_IncAndGet">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[1, 2]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[2, 1]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$IncAndGet_Set">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[1, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[11, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$Set_Set">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$CAS_CAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[1, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$CAS_WCAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution, or T2[fail] -> T1 execution.</description>
        </case>
        <case>
            <match>[1, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$CAS_Set">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution.</description>
        </case>
        <case>
            <match>[1, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$WCAS_WCAS">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 10]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution, or T2[fail] -> T1 execution.</description>
        </case>
        <case>
            <match>[1, 10]</match>
            <expect>ACCEPTABLE_INTERESTING</expect>
            <description>Tx[fail] -> Tx[fail]</description>
        </case>
        <case>
            <match>[1, 20]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

    <test name="org.openjdk.jcstress.tests.atomics.longs.AtomicLongPairwiseTests$WCAS_Set">
        <contributed-by>Aleksey Shipilev (aleksey.shipilev@oracle.com)</contributed-by>
        <description>Tests the atomicity of AtomicLong pair-wise operations.</description>
        <case>
            <match>[5, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T1 -> T2 execution, or T2[fail] -> T1 execution.</description>
        </case>
        <case>
            <match>[1, 0]</match>
            <expect>ACCEPTABLE</expect>
            <description>T2 -> T1 execution.</description>
        </case>
        <unmatched>
            <expect>FORBIDDEN</expect>
            <description>Other cases are not expected.</description>
        </unmatched>
    </test>

</testsuite>