JEP 171: Clarifications/corrections for fence intrinsics

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 9
    • Affects Version/s: None
    • Component/s: core-libs
    • b44
    • generic
    • generic
    • Verified

        Unsafe.storeFence currently says,

        """Ensures lack of reordering of stores before the fence
        with loads or stores after the fence."""

        That looks incorrect. It should be implying a LoadStore, not a StoreLoad.

        Also, fences are very difficult to understand, and more explanatory text will be helpful.

        Here's a try:

        http://cr.openjdk.java.net/~martin/webrevs/openjdk9/fence-intrinsics/

              Assignee:
              Martin Buchholz
              Reporter:
              Martin Buchholz
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: