RFR: 8186958: Need method to create pre-sized HashMap [v4]
XenoAmess
duke at openjdk.java.net
Thu Mar 24 11:58:41 UTC 2022
On Wed, 23 Mar 2022 21:04:52 GMT, liach <duke at openjdk.java.net> wrote:
>> XenoAmess has updated the pull request incrementally with one additional commit since the last revision:
>>
>> use jmh Blackhole
>
> test/jdk/java/util/Collections/CalculateHashMapCapacityTestJMH.java line 42:
>
>> 40: public class CalculateHashMapCapacityTestJMH {
>> 41:
>> 42: private void consume(int tmp) {
>
> You should pass a jmh Blackhole object in the parameter of test methods and call its consume method. jmh will automatically pass the blackhole. This one will be eliminated as dead code.
@liach done.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7928
More information about the core-libs-dev
mailing list