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

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • core-libs
    • None

      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);

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

              Created:
              Updated:
              Resolved: