RFR: 8369207: _Copy_conjoint_{jshorts,jints,jlongs}_atomic on Linux/BSD AArch64 do not prevent tearing

Justin King jcking at openjdk.org
Mon Oct 6 16:04:39 UTC 2025


On Mon, 6 Oct 2025 15:32:14 GMT, Andrew Haley <aph at openjdk.org> wrote:

> > Currently the code generates to `ldp` and `stp`, this change does have the side affect of forcing it to do `ldr` and `str`. If that seems unacceptable from a performance standpoint we can hand-roll assembly to do `ldp` and `stp`.
> 
> That would be much better.

https://github.com/openjdk/jdk/pull/27642 is already going to move it to `ldr` and `str`, FYI.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27647#issuecomment-3372486093


More information about the hotspot-runtime-dev mailing list