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

XenoAmess duke at openjdk.java.net
Wed Apr 6 15:55:15 UTC 2022


On Wed, 6 Apr 2022 00:54:41 GMT, Stuart Marks <smarks at openjdk.org> wrote:

>> XenoAmess has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   revert changes in jdk.compile
>
> src/java.base/share/classes/java/util/LinkedHashMap.java line 792:
> 
>> 790: 
>> 791:     /**
>> 792:      * Creates a new, empty LinkedHashMap suitable for the expected number of mappings.
> 
> Adjust wording here to read,
> 
>     Creates a new, empty, insertion-ordered LinkedHashMap suitable...
> 
> I've used this wording in the CSR.

@stuart-marks done.

> I don't think we need this benchmark in this PR.

@stuart-marks OK, that benchmark removed.

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

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


More information about the core-libs-dev mailing list