[jdk21u-dev] RFR: 8369506: Bytecode rewriting causes Java heap corruption on AArch64

Andrew Haley aph at openjdk.org
Fri Oct 17 17:11:07 UTC 2025


On Fri, 17 Oct 2025 14:50:15 GMT, Justin King <jcking at openjdk.org> wrote:

> Unclean backport to JDK 21. The area in question was changed for JDK 25. Same approximate fix except adds a missing `LoadLoad` barrier to `TemplateTable::fast_xaccess`.

src/hotspot/cpu/aarch64/templateTable_aarch64.cpp line 3152:

> 3150:   __ ldr(r0, aaddress(0));
> 3151:   // access constant pool cache
> 3152:   __ get_cache_and_index_at_bcp(r2, r3, 2);

I spent a little while looking at the other uses of `get_cache_and_index_at_bcp` and I couldn't find anything obviously wrong, but that might not mean we're OK.

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

PR Review Comment: https://git.openjdk.org/jdk21u-dev/pull/2355#discussion_r2440636769


More information about the jdk-updates-dev mailing list