[concurrency-interest] RFR: 8065804: JEP 171: Clarifications/corrections for fence intrinsics

Martin Buchholz martinrb at google.com
Thu Nov 27 02:29:06 UTC 2014


On Tue, Nov 25, 2014 at 1:41 PM, Andrew Haley <aph at redhat.com> wrote:
> On 11/24/2014 08:56 PM, Martin Buchholz wrote:
> +     * Currently hotspot's implementation of a Java language-level volatile
> +     * store has the same effect as a storeFence followed by a relaxed store,
> +     * although that may be a little stronger than needed.
>
> While this may be true today

No - it was very wrong, since it doesn't give you sequential consistency!

, I'm hopefully about to commit an
> AArch64 OpenJDK port that uses the ARMv8 stlr instruction.  I
> don't think that what you've written here is terribly misleading,
> but bear in mind that it may be there for some time.



More information about the core-libs-dev mailing list