RFR: 8274773: [TESTBUG] UnsafeIntrinsicsTest intermittently fails on weak memory model platform
Martin Doerr
mdoerr at openjdk.java.net
Tue Oct 5 12:35:22 UTC 2021
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.)
-------------
Commit messages:
- 8274773: [TESTBUG] UnsafeIntrinsicsTest intermittently fails on weak memory model platform
Changes: https://git.openjdk.java.net/jdk/pull/5823/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5823&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8274773
Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/5823.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/5823/head:pull/5823
PR: https://git.openjdk.java.net/jdk/pull/5823
More information about the hotspot-compiler-dev
mailing list