RFR: 8281631: HashMap copy constructor and putAll can over-allocate table [v27]

liach duke at openjdk.java.net
Sat Mar 5 19:32:08 UTC 2022


On Sat, 5 Mar 2022 19:06:03 GMT, XenoAmess <duke at openjdk.java.net> wrote:

>> 8281631: HashMap copy constructor and putAll can over-allocate table
>
> XenoAmess has updated the pull request incrementally with one additional commit since the last revision:
> 
>   refactor tests

test/jdk/java/util/HashMap/WhiteBoxHashMapTestUtil.java line 46:

> 44:             Class<?> mClass = HashMap.class;
> 45:             String nodeClassName = mClass.getName() + "$Node";
> 46:             Class<?> nodeArrayClass = Class.forName("[L" + nodeClassName + ";");

this looks wrong, and the class instance is used nowhere later. should probably be removed.

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

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


More information about the core-libs-dev mailing list