Request for reviews (XS): 6996240: The BitSet.length method sometimes returns an index+1 value less than that of the highest bit set.

Christian Thalinger christian.thalinger at oracle.com
Tue Nov 2 10:56:15 PDT 2010


http://cr.openjdk.java.net/~twisti/6996240/webrev.01/

6996240: The BitSet.length method sometimes returns an index+1 value  
less than that of the highest bit set.
Reviewed-by:

It's a problem with countLeadingZerosL.  dst is a iRegI but is used as
temporary for an iRegL OR value.

The fix is to use a second temporary iRegL register for the OR value.

Tested with the failing testcase attached to the CR.


More information about the hotspot-compiler-dev mailing list