[aarch64-port-dev ] [NEW BUG]Missing LoadStore barrier in interpreter?

Andrew Haley aph at redhat.com
Sat Feb 2 13:43:24 UTC 2019


On 2/2/19 3:47 AM, Patrick Zhang wrote:
> 1. Is the right process that the patch firstly gets applied on jdk/jdk/../aarch64, then backported to jdk8u?

Yes.

> BTW, I wonder if there is any "failed" test, and right now could get "pass" with the patch?
> http://hg.openjdk.java.net/jdk/jdk/file/00baec44c94e/src/hotspot/cpu/aarch64/templateTable_aarch64.cpp#l2723

We could try to write a custom jcstress test, but I don't think there's
much point..

> 2. Compared the original patch (back to Jun 2013) on aarch64-port/jdk8u with x86's implementation, at the end of the putfield_or_static function, was the StoreStore intentionally dropped?
> http://hg.openjdk.java.net/aarch64-port/jdk8u/hotspot/rev/ed26923dcc83#l3.118 
> http://hg.openjdk.java.net/jdk/jdk/file/00baec44c94e/src/hotspot/cpu/x86/templateTable_x86.cpp#l3134 
> -  // TODO : restore this volatile barrier call

It's not necessary because of the x86 TSO memory model.

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


More information about the aarch64-port-dev mailing list