RFR: JDK-8294902: Undefined Behavior in C2 regalloc with null references [v6]

Axel Boldt-Christmas aboldtch at openjdk.org
Mon Dec 5 09:41:06 UTC 2022


On Sat, 3 Dec 2022 10:22:41 GMT, Andrew Haley <aph at openjdk.org> wrote:

>> FYI: I have verified this also works with GCC version 11.3.0 on linux-riscv64 platform.
>
> Thanks.

How does this behave with respect to alignment?
The previous implementation used 16 which is at least aligned to `std::max_align_t` (for all hotspots build systems?) 
My understanding is that `char space[sizeof (klass)];` is 1-byte aligned, so `dummyObj` may be misaligned.

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

PR: https://git.openjdk.org/jdk/pull/10920


More information about the hotspot-dev mailing list