[jdk11u-dev] RFR: 8369506: Bytecode rewriting causes Java heap corruption on AArch64
David Sladký
duke at openjdk.org
Thu Feb 12 14:34:33 UTC 2026
Backport of [JDK-8369506](https://bugs.openjdk.org/browse/JDK-8369506) - Bytecode rewriting causes Java heap corruption on AArch64.
Only manual change compared to the backport to JDK17 is in file `src/hotspot/cpu/aarch64/interp_masm_aarch64.cpp` on line 1833. `sizeof(markWord)` had to be changed to `sizeof(markOop)`, because `markWord` type is not present in JDK11. `markOop` should be JDK11 equivalent of `markWord`.
#### Tier 1 - PASSES
#### GTest - PASSES
#### GHA -PASSES
Only macos-x64 / test (hs/tier1 serviceability) fails, which seems to be common occurrence in other PRs too -> unrelated to this PR.
-------------
Commit messages:
- backport 9f896829241e78ae0d6afb89b73840997234fb90
Changes: https://git.openjdk.org/jdk11u-dev/pull/3152/files
Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3152&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8369506
Stats: 29 lines in 3 files changed: 27 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk11u-dev/pull/3152.diff
Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/3152/head:pull/3152
PR: https://git.openjdk.org/jdk11u-dev/pull/3152
More information about the jdk-updates-dev
mailing list