RFR: JDK-8309266: C2: assert(final_con == (jlong)final_int) failed: final value should be integer [v3]

Christian Hagedorn chagedorn at openjdk.org
Mon Jun 19 12:59:11 UTC 2023


On Mon, 19 Jun 2023 12:44:39 GMT, Eric Nothum <duke at openjdk.org> wrote:

>> src/hotspot/share/opto/loopnode.cpp line 2316:
>> 
>>> 2314:     // Assert checks for overflow only if all input nodes are ConINodes, as during CCP
>>> 2315:     // there might be a temporary overflow from PhiNodes see JDK-8309266
>>> 2316:     assert(in(Init)->is_ConI() && in(Limit)->is_ConI() && in(Stride)->is_ConI() \
>> 
>> Do we really need a backslash here?
>
> No not really, I just thought the line was getting long

You can wrap lines in asserts without backslashes.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14490#discussion_r1234026309


More information about the hotspot-compiler-dev mailing list