RFR: 8276789: Support C++ lambda in ResourceHashtable::iterate [v2]
Ioi Lam
iklam at openjdk.java.net
Wed May 18 02:49:29 UTC 2022
On Wed, 18 May 2022 02:06:21 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> 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 43:
>
>> 41: template<typename F>
>> 42: void DumpTimeSharedClassTable::iterate(F f) const {
>> 43: auto g = [=] (InstanceKlass* k, DumpTimeClassInfo& info) {
>
> The style guide states we should try to only use `[&]` for capture by reference.
Fixed.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8761
More information about the hotspot-dev
mailing list