CompareAndSet fails intermittently for riscv

Aleksey Shipilev shade at redhat.com
Tue Aug 16 08:24:23 UTC 2022


On 8/16/22 09:54, Aleksey Shipilev wrote:
> On 8/16/22 08:34, wangyadong (E) wrote:
>> Yes, we know about these test failures, and we've found that these failures also occur on our
>> "powerful" aarch64 servers. I think there is some uncertainty about the test itself, and the
>> probability of passing increased when you raise the test parameter of "weakAttempts".
> Yes, the test itself is flaky.
> 
> Unfortunately, disabling the test completely is worse option, because it would miss the actual
> broken weak CASes.
> 
>> We now run the weak-cas tests with a high "weakAttempts" on unmatched.
> 
> How much you bump weakAttempts to?
> 
> I also think we would be better with some backoff in the loop, so that we have more chance in
> succeeding.

Let's try this:
   https://github.com/openjdk/jdk/pull/9889

Please run it on your RISC-V machine, Vladimir?
Please run it on your AArch64 machine, Yadong?

-- 
Thanks,
-Aleksey



More information about the riscv-port-dev mailing list