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

CompareAndExchange/Swap should leverage MemoryAccess class

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 10
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      Description

      JDK-8150921 introduced a new MemoryAccess helper class in unsafe.cpp for handling the various Unsafe memory accesses, wrapping them in t->doing_unsafe_access() calls if needed, normalizing the stored values, etc.

      The CompareAndExchange and CompareAndSwap intrinsics should also leverage the MemoryAccess class.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hseigel Harold Seigel
                Reporter:
                mikael Mikael Vidstedt
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: