RFR: 8276789: Support C++ lambda in ResourceHashtable::iterate [v4]
Stefan Karlsson
stefank at openjdk.java.net
Tue May 24 12:37:47 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/utilities/resourceHash.hpp line 210:
> 208: };
> 209: iterate(function);
> 210: }
Do you still have any usages of this? I'm a bit surprised that the compiler don't complain about not being able to disambiguate calls to this vs the new lambda enabled function.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8761
More information about the hotspot-dev
mailing list