RFR: 8274773: [TESTBUG] UnsafeIntrinsicsTest intermittently fails on weak memory model platform
Goetz Lindenmaier
goetz at openjdk.java.net
Sat Oct 9 12:05:12 UTC 2021
On Tue, 5 Oct 2021 12:27:05 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:
> The test creates new Nodes and publishes them to concurrent readers. This requires at least release and load_consume. A clean fix would be to make `Node.next` volatile. But that would be a sledgehammer. A minimalistic fix for our supported weak memory model platforms is to insert a `storeFence`. What is better?
> (See JBS for failure description.)
LGTM
-------------
Marked as reviewed by goetz (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/5823
More information about the hotspot-compiler-dev
mailing list