Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8080588 VarHandles development
  3. JDK-8133451

Add weak CAS, and acquire/release forms of CAS

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None

      Description

      As described by Doug Lea here:
       http://mail.openjdk.java.net/pipermail/jmm-dev/2015-August/000185.html

      Basically, it amounts to add two new flavors for each CAS, plus the weak CAS hierarchy:

          boolean compareAndSet(Object owner, T cmp, T val);
          boolean compareAndSetAcquire(Object owner, T cmp, T val);
          boolean compareAndSetRelease(Object owner, T cmp, T val);

          boolean weakCompareAndSet(Object owner, T cmp, T val);
          boolean weakCompareAndSetAcquire(Object owner, T cmp, T val);
          boolean weakCompareAndSetRelease(Object owner, T cmp, T val);

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: