RFR: JDK-8294902: Undefined Behavior in C2 regalloc with null references [v6]
Aleksey Shipilev
shade at openjdk.org
Fri Dec 2 18:27:14 UTC 2022
On Fri, 2 Dec 2022 11:01:31 GMT, Andrew Haley <aph at openjdk.org> wrote:
>> Of course we can't exclude the possibility of warnings, given that taking the offset of a field of a non-POD class is unspecified behaviour. Having said that, I'm not sure exactly what it'd be warning about.
>
> This restriction in C++ is unnecessary, really, since AFAIK this works on all implementations.
This seems to work on GCCs 9..12 in {x86_64, x86_32, aarch64}.
-------------
PR: https://git.openjdk.org/jdk/pull/10920
More information about the hotspot-dev
mailing list