RFR: 8281631: HashMap copy constructor and putAll can over-allocate table [v22]

XenoAmess duke at openjdk.java.net
Mon Feb 21 07:24:50 UTC 2022


On Mon, 21 Feb 2022 06:33:05 GMT, liach <duke at openjdk.java.net> wrote:

> Unfortunately I don't think there is any for now. 

@liach 
Yes. that is why I ask if there be evidence to show `(int) ((1 + m.size()) * 1.1)` be an optimization, but not otherwise.
(IMO it is otherwise.)

-------------

PR: https://git.openjdk.java.net/jdk/pull/7431


More information about the core-libs-dev mailing list