RFR: 8331098: [Aarch64] Fix crash in Arrays.equals() intrinsic with -CCP [v2]

Andrew Haley aph at openjdk.org
Fri Apr 26 17:39:52 UTC 2024


On Fri, 26 Apr 2024 13:18:46 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

> This is not about an optimization, but about a correctness issue. The loop(s) have been written under the assumption that they can read full words, which is true if we start at a word boundary. However, if we don't, then we can attempt an (unaligned) read beyond the array, and if that memory is outside of the heap and unmapped, then we would crash. Note that this currently only happens when running with -UseCompressedClassPointers which almost nobody does. We encountered it with Lilliput, which changes array layout in a similar way.

OK, I see. Fair enough.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18948#discussion_r1581333550


More information about the hotspot-dev mailing list