RFR: 8292407: Improve Weak CAS VarHandle/Unsafe tests resilience under spurious failures [v4]

Martin Doerr mdoerr at openjdk.org
Thu Sep 1 09:18:15 UTC 2022


On Wed, 31 Aug 2022 08:05:03 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> It's awkward to manage this across various hardware, esp. if the hardware is less mature (perhaps combined with a less mature HotSpot implementation). The approach looks reasonable, but it would be nice if we could just increase the retries and waiting values on weak LL/SC hardware or at least follow up with something like that later on.
>> 
>> As a quick experiment could we annotate fields with `@Contended` and see if that reduces the number of retries?
>
> @PaulSandoz, @TheRealMDoerr -- are you okay with this?

@shipilev yes, looks much better, now. Thanks for the extra effort!

-------------

PR: https://git.openjdk.org/jdk/pull/9889


More information about the core-libs-dev mailing list