[aarch64-port-dev ] Question about JVM option "-XX:+UseBarriersForVolatile" usage in aarch64.

Andrew Haley aph at redhat.com
Mon Mar 30 09:55:33 UTC 2020


On 3/30/20 10:20 AM, Xiaohong Gong wrote:
> So my question is: what does the main usage of the option "-XX:+UseBarriersForVolatile" in real applications? Do we need to concern
> the issues with it? If we do, so maybe the issue is valuable to be fixed.
> I also created a JBS here: https://bugs.openjdk.java.net/browse/JDK-8241137.

There is no usage of "-XX:+UseBarriersForVolatile" in real applications.
Any flags of this kind are dangerous because they tend to break over time
because they are not tested.

I was thinking we could make this a diagnostic-only flag, but perhaps it
should be removed altogether. Patches welcome.

-- 
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the aarch64-port-dev mailing list