RFR: 8240615: is_power_of_2() has Undefined Behaviour and is inconsistent
Andrew Haley
aph at redhat.com
Tue Mar 10 09:44:54 UTC 2020
On 3/9/20 3:56 PM, Doerr, Martin wrote:
> it doesn't run into the UB case, but log2_jint(x) returns 63 for negative x.
> I'd treat this as bug. A jint has 32 bit and log2 should never return 63.
OK.
--
Andrew Haley (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the hotspot-dev
mailing list