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

Jeff Hain jeffhain at rocketmail.com
Thu Jul 3 19:59:42 UTC 2014


http://cr.openjdk.java.net/~igerasim/6904367/1/webrev/

My test now terminates (exception on MAX_CAPACITY-th put).

Maybe where MAX_CAPACITY is defined you could indicate that you can actually have at most MAX_CAPACITY-1 mappings, to ensure that the table always contains some null key-spot (I don't see this invariant explicited already).

-Jeff



More information about the core-libs-dev mailing list