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

Remove MO_VOLATILE Access decorator

XMLWordPrintable

    • gc
    • b24

      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.

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

              Created:
              Updated:
              Resolved: