VarHandle weakCompareAndSetPlain is misnamed

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      Any implementation of method weakCompareAndSetPlain must intrinsically be bitwise atomic and maintain coherence wrt its variable, which fits the definition of Opaque (vs Plain). (The misnaming is due to pre-VarHandle conventions). At a minimum, the specs should be updated to document this. But it would be more uniform to introduce weakCompareAndSetOpaque and then explain that the Plain form is equivalent. We could even deprecate Plain form, but probably not worth the disruption.

            Assignee:
            Doug Lea
            Reporter:
            Doug Lea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: