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

Support relaxed atomic add for linux-aarch64

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b19
    • CPU:
      aarch64
    • OS:
      linux

      Description

      Atomic::add and its variants are sometimes used in HotSpot C++ code with memory_order_relaxed, in places where an atomic RMW is needed but ordering is not. The linux-aarch64 platform currently ignores the memory order argument and always performs a conservative operation, possibly affecting performance. It should instead use a relaxed atomic add where requested. Other ordering variants for add operations aren't currently used, so don't need specialization.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kbarrett Kim Barrett
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: