RFR: 8325467: Support methods with many arguments in C2 [v17]
Emanuel Peter
epeter at openjdk.org
Mon Jun 23 14:17:44 UTC 2025
On Mon, 23 Jun 2025 13:56:54 GMT, Daniel Lundén <dlunden at openjdk.org> wrote:
>>> Do not use ints or pointers as (implicit) booleans with &&, ||, if, while. Instead, compare explicitly, i.e. if (x != 0) or if (ptr != nullptr), etc.
>>
>> Ok, well no matter what, it would not conform to the style. Maybe you already fixed it though, not sure.
>
> Ah, good to know. I fixed all the occurrences I could find (and some bonus ones). I guess there is no static checker available to automate this?
Not that I am aware of, no :/
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20404#discussion_r2161745044
More information about the hotspot-compiler-dev
mailing list