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

Andrew Haley aph at openjdk.org
Fri Dec 2 10:19:34 UTC 2022


On Thu, 1 Dec 2022 17:59:45 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

>>> Please, initialize `_caller_jvms` to `NULL` (on line 47), switch the null check to `caller_jvms` (on line 60), a
>> 
>> Done.
>
> I'm talking specifically about the assert you are adjusting:
> 
> assert(_caller_jvms->same_calls_as(caller_jvms), "consistent JVMS");
> 
> It can be left as is once it is under `caller_jvms != NULL`, since there's no need in `_caller_jvms == NULL` anymore.

Got it, done. Thanks.

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

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


More information about the hotspot-dev mailing list