RFR: 8186958: Need method to create pre-sized HashMap

liach duke at openjdk.java.net
Thu Mar 24 00:47:45 UTC 2022


On Thu, 24 Mar 2022 00:40:19 GMT, XenoAmess <duke at openjdk.java.net> wrote:

> still I think it better to put these functions to Collections as they can share a same calculation function.

You can just keep these methods in `Collections` but make them package-private, so the moved factories can call. (Note that the methods may have to go to somewhere else in `java.util` if `Collections` cannot be loaded too early during startup)

> good but I have no account to comment on your jira system.

I think when the patch looks good, stuart will file one CSR for you, or you can write a CSR draft for him to file.

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

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


More information about the core-libs-dev mailing list