[jdk17] RFR: 8269752: C2: assert(false) failed: Bad graph detected in build_loop_late [v2]

Roland Westrelin roland at openjdk.java.net
Thu Jul 15 09:50:55 UTC 2021


On Tue, 13 Jul 2021 16:29:02 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

>> Roland Westrelin has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   braces
>
> src/hotspot/share/opto/loopnode.cpp line 4948:
> 
>> 4946: 
>> 4947:   int input = is_main_loop() ? 2 : 1;
>> 4948:   bool res = cmpzm->in(input)->Opcode() == Op_Opaque1;
> 
> You need to check `input < cmpzm->in(input)` and  `cmpzm->in(input)` for `NULL`. There could be a "dead" path.

Thanks for reviewing this. I updated the patch.

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

PR: https://git.openjdk.java.net/jdk17/pull/247


More information about the hotspot-compiler-dev mailing list