RFR: 8259236: C2 compilation fails with assert(is_power_of_2(value)) failed: value must be a power of 2: 8000000000000000
Claes Redestad
redestad at openjdk.java.net
Tue Jan 5 16:44:56 UTC 2021
On Tue, 5 Jan 2021 15:49:21 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:
>> log2i_exact does not accept 0x8000000000000000 if the type is signed, which log2_long used before JDK-8257815 did. This adds a cast to julong, similar to what was previously done in btsL_mem_imm
>>
>> Ran the test 10+ times in our CI without hitting the assert.
>
> Looks good and trivial.
Thanks @TobiHartmann!
-------------
PR: https://git.openjdk.java.net/jdk/pull/1944
More information about the hotspot-compiler-dev
mailing list