FRF: 8033792: AltHashing used jint for imprecise bit shifting
Yumin Qi
yumin.qi at oracle.com
Thu Feb 6 20:14:14 PST 2014
Hi,
Please review the change for 8033792.
Summary: AltHashing uses 'jint' type in the way as 'unsigned int'
in bit shifting, which is imprecise. This could lead loss of precision
when converted between jint and 'unsigned int' during bit operation. Fix
by changing operation variable type from 'jint' to 'juint', before
return, cast it into type 'jint'.
http://cr.openjdk.java.net/~minqi/8033792/webrev00/
Thanks
Yumin
More information about the hotspot-runtime-dev
mailing list