RFR: 8276789: Support C++ lambda in ResourceHashtable::iterate [v4]
Stefan Karlsson
stefank at openjdk.java.net
Tue May 24 12:33:51 UTC 2022
On Mon, 23 May 2022 17:13:36 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> I added two new template functions to reduce the boilerplate code when walking the entries in a ResourceHashtable
>>
>> - `template<typename F> void ResourceHashtable::iterate(F f)`
>> - `template<typename F> void ResourceHashtable::iterate_all(F f)`
>>
>> I also modified a couple of places in systemDictionaryShared.cpp to use the new functionality.
>>
>> Testing with tiers 1-4.
>
> Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:
>
> some clean up suggested by @stefank
src/hotspot/share/classfile/systemDictionaryShared.cpp line 672:
> 670: SystemDictionaryShared::check_for_exclusion(k, &info);
> 671: };
> 672: _dumptime_table->iterate_all(check_for_exclusion);
Can't this be changed to just:
`_dumptime_table->iterate_all(SystemDictionaryShared::check_for_exclusion);`
or maybe even:
`_dumptime_table->iterate_all(check_for_exclusion);`
-------------
PR: https://git.openjdk.java.net/jdk/pull/8761
More information about the hotspot-dev
mailing list