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

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

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 18
    • 18
    • hotspot
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: