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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 18
    • Affects Version/s: 18
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: