RFR: 8284780: Need methods to create pre-sized HashSet and LinkedHashSet [v10]

ExE Boss duke at openjdk.java.net
Wed May 25 03:06:49 UTC 2022


On Tue, 24 May 2022 21:37:52 GMT, XenoAmess <duke at openjdk.java.net> wrote:

>> as title.
>
> XenoAmess has updated the pull request incrementally with one additional commit since the last revision:
> 
>   add test for newHashSet and newLinkedHashSet

test/jdk/java/util/HashMap/WhiteBoxResizeTest.java line 360:

> 358:                         throw new RuntimeException(e);
> 359:                     }
> 360:                 })

These probably need a `mapField.setAccessible(true)` call, or a `VarHandle` for the `HashSet.map` field.

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

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


More information about the core-libs-dev mailing list