RFR: 8029574: TreeMap: optimization of method computeRedLevel()

Aleksey Shipilev aleksey.shipilev at oracle.com
Mon Nov 16 20:01:08 UTC 2015


On 11/16/2015 10:46 PM, Martin Buchholz wrote:
> https://bugs.openjdk.java.net/browse/JDK-8029574
> http://cr.openjdk.java.net/~martin/webrevs/openjdk9/TreeMap-optimization/

+1, cute.

Need to mention this only works for non-negative "sz"? It's hard to
define what is the result for negative "sz", but I think it is a good
style to comment the conditions in bit-twiddling methods.

Thanks,
-Aleksey





More information about the core-libs-dev mailing list