Integrated: 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: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.

This pull request has now been integrated.

Changeset: d5aa49d1
Author:    Claes Redestad <redestad at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/d5aa49d1
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8259236: C2 compilation fails with assert(is_power_of_2(value)) failed: value must be a power of 2: 8000000000000000

Reviewed-by: thartmann

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

PR: https://git.openjdk.java.net/jdk/pull/1944


More information about the hotspot-compiler-dev mailing list