RFR: 8240615: is_power_of_2() has Undefined Behaviour and is inconsistent
Andrew Haley
aph at redhat.com
Mon Mar 9 10:54:19 UTC 2020
So, my plan is to push http://cr.openjdk.java.net/~aph/8240615-1/ and
subsequently patch a few AArch64 cases plus the x86_64 immL_Pow2 and
immL_NotPow2 cases that we already identified.
I do not intend to do bulk changes to any other clients of
is_power_of_2() because it's often unclear exactly what behaviour is
required, and I'd risk breaking something.
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-runtime-dev
mailing list