Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8343541

C1: Plain memory accesses are emitted with membars with +AlwaysAtomicAccesses

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 17, 21, 23, 24
    • hotspot
    • master

      Noticed this while looking at current AlwaysAtomicAccesses uses. This flag is useful to experiment with Valhalla flattening and generically with long atomicity.

      See for example here: https://github.com/openjdk/jdk/blob/895a7b64f01dec7248549b127875edcf006457cf/src/hotspot/share/gc/shared/c1/barrierSetC1.cpp#L143 -- we set `is_volatile` when `+AlwaysAtomicAccesses`, so it emit barriers.

            xpeng Xiaolong Peng
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: