RFR: 8186958: Need method to create pre-sized HashMap [v3]

XenoAmess duke at openjdk.java.net
Thu Mar 24 11:55:37 UTC 2022


On Thu, 24 Mar 2022 00:44:02 GMT, liach <duke at openjdk.java.net> wrote:

> Note that the methods may have to go to somewhere else in `java.util` if `Collections` cannot be loaded too early during startup, as HashMap is loaded very early

I'm afraid you are correct... moved the calculation function into HashMap seems better.

@liach done.

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

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


More information about the core-libs-dev mailing list