Unsafe CompareAndSwap loops should use weak*Volatile CAS

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 9
    • Component/s: core-libs
    • None

      Rationale:
       http://mail.openjdk.java.net/pipermail/jmm-dev/2016-April/000239.html

      This helps platforms that have to emulate CAS with LL/SC. Spurious failures in CAS loops would be handled in the main loop anyway.

            Assignee:
            Aleksey Shipilev
            Reporter:
            Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: