RFR: 8301939: [c1] The visibility of write-volatile requires membar_volatile instead of membar

SUN Guoyun duke at openjdk.org
Tue Jun 27 12:53:35 UTC 2023


For c1 now, a volatile write case:

membar_release // LoadStore | StoreStore
write volatile
membar

Just like c2, here `membar` should be defined `membar_volatile` clearly, then for risc-v, ppc and loongarch can use StoreLoad for `membar_volatile` for better performance.

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

Commit messages:
 - 8310939: [c1] The visibility of write-volatile requires membar_volatile instead of membar_volatile

Changes: https://git.openjdk.org/jdk/pull/14677/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14677&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8301939
  Stats: 36 lines in 13 files changed: 35 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/14677.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14677/head:pull/14677

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


More information about the hotspot-dev mailing list