Atomic bindings for fetch_and_add and xchg sometimes have too weak memory ordering on Mac AArch64

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • 20
    • Affects Version/s: 20
    • Component/s: hotspot

      With memory_order_conservative, the semantics is full bidirectional fencing.
      One full fence before the atomic operation, and one after. But for some
      reason, with fetch_and_add, add_and_fetch and xchg, there is only a trailing fence, and there is no leading fence at all. This is a violation of our memory ordering rules.

            Assignee:
            David Holmes
            Reporter:
            Erik Ă–sterlund
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: