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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 20
    • 20
    • 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.

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

              Created:
              Updated:
              Resolved: