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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 8, 11, 15, 16
    • 16
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: