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

Deprecate Atomic*.weakCompareAndSet and defer to Atomic*.weakCompareAndSetPlain

    XMLWordPrintable

    Details

      Description

      The methods on VarHandle provide the following naming scheme:

      - for read or write methods plain access is unqualified

      - for read-modify-write methods volatile access is unqualified

      This means the Atomic.weakCompareAndSet and Atomic.weakCompareAndSetVolatile are inconsistent with that naming.

      To reduce the confusion it is proposed to:

      1) deprecate Atomic*.weakCompareAndSet; and
      2) add Atomic*.weakCompareAndSetPlain

        Attachments

          Activity

            People

            Assignee:
            psandoz Paul Sandoz
            Reporter:
            psandoz Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: