RFR: 8318809: java/util/concurrent/ConcurrentLinkedQueue/WhiteBox.java shows intermittent failures on linux ppc64le and aarch64
Viktor Klang
vklang at openjdk.org
Tue Dec 5 20:29:45 UTC 2023
On Tue, 5 Dec 2023 09:08:59 GMT, Andrew Haley <aph at openjdk.org> wrote:
>> We've seen some rare failures of the CLQ Whitebox test on "less-strong" architectures, and the only thing which -- given my research -- could be the culprit is spuriously failing weakCAS (which is correct in terms of the implementation of CLQ).
>>
>> After discussion with @DougLea, it was decided as the CLQ implementation does not guarantee what the failing test tests, and modifying the test would mean that it would generally not be able to enforce anything, the test is invalid and should be removed -- hence this PR.
>
> Few AArch64 HotSpot systems implement weak CAS as anything other than plain CAS. In order to get to the root cause of this problem, it would help to know on which AArch64 hardware this test failed.
@theRealAph I think the problem in this case was that the whitebox test in this case relied on a presumption that was only true for stronger consistency architectures, and rewriting the test would essentially be asserting that "a lot of permutations are valid, and only internally observable" which is a low-value test.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16786#issuecomment-1841562374
More information about the core-libs-dev
mailing list