RFR: 8186958: Need method to create pre-sized HashMap [v18]
Stuart Marks
smarks at openjdk.java.net
Wed Apr 13 23:01:16 UTC 2022
On Wed, 13 Apr 2022 22:20:14 GMT, XenoAmess <duke at openjdk.java.net> wrote:
>> 8186958: Need method to create pre-sized HashMap
>
> XenoAmess has updated the pull request incrementally with one additional commit since the last revision:
>
> update LastModified
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/dom/DocumentCache.java line 171:
> 169: _current = 0;
> 170: _size = size;
> 171: _references = HashMap.newHashMap(_size);
Not `_size+2` ?
-------------
PR: https://git.openjdk.java.net/jdk/pull/7928
More information about the security-dev
mailing list