Better support for native implementations of Atomic::cmpxchg

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: