RFR: 8240615: is_power_of_2() has Undefined Behaviour and is inconsistent

Andrew Haley aph at redhat.com
Tue Mar 10 18:28:34 UTC 2020


On 3/10/20 6:25 PM, Andrew Haley wrote:
> I don't think that it's necessary. (~$con$$constant) returns a jlong
> which gets passed to log2_long(julong x), so it gets converted to
> from julong to julong at the point of the call.

Uh, from jlong to julong.

-- 
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-runtime-dev mailing list