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

ARM32 Zero: replace usages of __sync_synchronize() with OrderAccess::fence

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8, 11, 15, 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b18

      Description

      In atomic_bsd_zero.hpp and atomic_linux_zero.hpp there are uses of __sync_synchronize(). However, orderAccess_*_zero.hpp calls the kernel helper, because:

      /*
       * ARM Kernel helper for memory barrier.
       * Using __asm __volatile ("":::"memory") does not work reliable on ARM
       * and gcc __sync_synchronize(); implementation does not use the kernel
       * helper for all gcc versions so it is unreliable to use as well.
       */

      We need to clean this up to use OrderAccess::fence().

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shade Aleksey Shipilev
              Reporter:
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: