[11u] AArch64: Support for LSE atomics C++ HotSpot code

Andrew Haley aph at redhat.com
Thu Mar 18 16:10:26 UTC 2021


This is the first of two patches which allow C++ code in HotSpot
to use Arm's Large System Extensions.

This is necessary because some recent AArch64 hardware performs
very badly, particularly under heavy contention, with the older
way of doing atomic updates, using LDXR and STXR. Java code has
been using these LSE instructions, where available, for several
years.

This first patch is mostly just scaffolding: the actual performance
improvement is https://bugs.openjdk.java.net/browse/JDK-8261649.

The original patch did not apply because the argument order of
class Atomic functions changed with 8234740. Otherwise, it was
fairly straightforward.

http://cr.openjdk.java.net/~aph/8261027-jdk11u/

-- 
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 jdk-updates-dev mailing list