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

Better support for native implementations of Atomic::cmpxchg

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 9
    • 9
    • hotspot

      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.

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

              Created:
              Updated:
              Resolved: