x86: Use xchg for volatile writes

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 20
    • Component/s: hotspot

      Currently, volatile write is implemented using a normal write and a StoreLoad barrier (lock_add [rsp - 0x40], 0x0). This can be reduced to a single locked xchg, similar to how C++ compilers are doing.

            Assignee:
            Unassigned
            Reporter:
            Quan Anh Mai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: