RFR: 8341544: Restore fence() in Mutex
Anton Artemov
duke at openjdk.org
Thu May 15 11:47:30 UTC 2025
Added a fence in the mutex code in order to make the critical section provided by the mutex follow the roach-motel semantics.
No significant performance impact observed in an extending testing.
Tested in tiers 1-3.
-------------
Commit messages:
- 8341544: Addressed reviwers comments.
- 8341544: Removed fences in handshake, addressed comment style
- 8341544: Added extended comment, removed fence in HandshakeState:process_by_self
- Merge remote-tracking branch 'origin/master' into JDK-8341544
- 8341544: Refactored a call to OrderAccess::fence() and added a comment.
- 8341544: Does Mutex need to also add a fence()
Changes: https://git.openjdk.org/jdk/pull/25033/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25033&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8341544
Stats: 13 lines in 2 files changed: 13 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/25033.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25033/head:pull/25033
PR: https://git.openjdk.org/jdk/pull/25033
More information about the hotspot-runtime-dev
mailing list