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

XenoAmess duke at openjdk.java.net
Wed Apr 13 16:31:02 UTC 2022


On Wed, 13 Apr 2022 04:24:41 GMT, Stuart Marks <smarks at openjdk.org> wrote:

> I've done some work on add test cases for these new static factory methods, and I've also added API notes to the capacity-based constructors to link to the new factory methods. Note that even though these are javadoc changes, the API notes are non-normative and don't require an update to the CSR. See the last few commits on this branch:
> 
> https://github.com/stuart-marks/jdk/commits/JDK-8186958-presized-HashMap
> 
> If you think they're good, please pull them in.
> 
> Regarding the scope of changes, the number of call sites that are changed is indeed spread rather too widely across the JDK. In order to keep the number of required reviewers small, I think we should trim down the call sites to a more manageable set. Specifically, I'd suggest **removing** from this PR the changes from the files in the following areas:
> 
> * src/java.desktop
> * src/java.management
> * src/jdk.internal.vm.ci
> * src/jdk.jfr
> * src/jdk.management.jfr
> * src/jdk.management
> * src/utils/IdealGraphVisualizer

@stuart-marks done.

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

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


More information about the core-libs-dev mailing list