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

Vladimir Kozlov vladimir.kozlov at oracle.com
Tue Mar 10 18:57:57 UTC 2020


Okay.

Thanks,
Vladimir

On 3/10/20 11:28 AM, Andrew Haley wrote:
> 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.
> 


More information about the hotspot-dev mailing list