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

Remove MO_VOLATILE Access decorator

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b24

      Description

      The MO_VOLATILE Access decorator is provided to support C++ volatile loads and stores. However, (nearly?) all uses assume non-word-tearing semantics, which is equivalent to MO_RELAXED (Atomic relaxed load/store). So there's really no benefit to having MO_VOLATILE as a separate memory ordering decorator. We should be using MO_RELAXED instead, and can then remove MO_VOLATILE.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kbarrett Kim Barrett
                Reporter:
                kbarrett Kim Barrett
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: