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

Simplify Unsafe.{load|store}Fence fallbacks by delegating to fullFence

    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:
      b23

      Description

      Unsafe.{load|store}Fence fallbacks call to unsafe.cpp for OrderAccess::{acquire|release}Fence(). It seems too heavy-handed (useless?) to call to runtime for a single memory barrier. We can simplify the native Unsafe interface by falling back to fullFence when {load|store}Fence intrinsics are not available. This would be similar to what {loadLoad|storeStore}Fences already do.

        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: