RFR(xs): 8211387: [Zero] atomic_copy64: Use ldrexd for atomic reads on ARMv7

Andrew Haley aph at redhat.com
Fri Oct 5 14:22:48 UTC 2018


On 10/05/2018 03:18 PM, Andrew Haley wrote:
> 
> There's no CLREX, and no-one ever reported any problem. CLREX could be
> a performance boost because it takes the cache line out of exclusive
> state back to shared state, reducing later bus traffic.

One more thing: LoadExclusive and StoreExclusive must be executed in
program order with the same address. CLREX is essential in interrupt
code because you might return to a StoreExclusive instruction and in
that case the StoreExclusive must fail: the CLREX guarantees that.

-- 
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 hotspot-dev mailing list