RFR: 8276789: Support C++ lambda in ResourceHashtable::iterate [v2]
Doug Simon
dnsimon at openjdk.java.net
Wed May 18 07:05:01 UTC 2022
On Wed, 18 May 2022 02:49:29 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:
>
> changed to use lambda capture by reference [&]
src/hotspot/share/cds/dumpTimeClassInfo.inline.hpp line 38:
> 36: #if INCLUDE_CDS
> 37:
> 38: // For safety, only iterate over a class if it loader is alive.
"if it loader" -> "if its loader is"
-------------
PR: https://git.openjdk.java.net/jdk/pull/8761
More information about the hotspot-dev
mailing list