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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • 18
    • hotspot
    • None
    • b23

      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.

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

              Created:
              Updated:
              Resolved: