RFR: [6904367]: (coll) IdentityHashMap is resized before exceeding the expected maximum size

Martin Buchholz martinrb at google.com
Tue Jul 8 00:47:04 UTC 2014


I think this code has an off-by-factor-of-2 bug.

+        if (expectedMaxSize > MAXIMUM_CAPACITY / 3)
+            return MAXIMUM_CAPACITY;



More information about the core-libs-dev mailing list