[PATCH] Docfix for Unsafe regarding fence methods

Hans Boehm hboehm at google.com
Fri Aug 28 21:59:14 UTC 2020


On Fri, Aug 28, 2020 at 1:21 PM Ian Graves <ian.graves at oracle.com> wrote:
>
> Looks like the patch attachment was stripped. I’ll include it inline:
> —Ian
>
> ...
> @@ -3458,6 +3462,12 @@
>      /**
>       * Ensures that stores before the fence will not be reordered with
>       * stores after the fence.
> +     *
> +     * This method is operationally equivalent to {@link #storeFence()}
> +     * as most hardware instructions that provide a StoreStore barrier
> +     * provide a LoadStore barrier for free.
> +     *
> +     * @since 9
>       */
>      public final void storeStoreFence() {
>          storeFence();
>
>
This seems a little misleading, since ARM has "dmb ishst", which orders
only stores?


More information about the core-libs-dev mailing list