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

Better support for native implementations of Atomic::cmpxchg

    Details

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

      Description

      Today Atomic::cmpxchg uses a seemingly suboptimal macro to let x86 platforms override the default emulated jbyte Atomic::cmpxchg with a native instruction. This is a hack and should be cleaned up.

      Instead of a macro, inheritance and a template provides a general solution for letting specific platforms optionally provide their own implementations of such generalized atomic instructions in the Atomic class.

        Attachments

          Activity

            People

            • Assignee:
              jwilhelm Jesper Wilhelmsson
              Reporter:
              jwilhelm Jesper Wilhelmsson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: