RFR: 8259236: C2 compilation fails with assert(is_power_of_2(value)) failed: value must be a power of 2: 8000000000000000
Tobias Hartmann
thartmann at openjdk.java.net
Tue Jan 5 15:51:57 UTC 2021
On Tue, 5 Jan 2021 15:12:31 GMT, Claes Redestad <redestad 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.
-------------
Marked as reviewed by thartmann (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/1944
More information about the hotspot-compiler-dev
mailing list