RFR: 8276789: Support C++ lambda in ResourceHashtable::iterate [v2]
Ioi Lam
iklam at openjdk.java.net
Wed May 18 02:49:29 UTC 2022
> 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 [&]
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/8761/files
- new: https://git.openjdk.java.net/jdk/pull/8761/files/e4828286..97cf613a
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8761&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8761&range=00-01
Stats: 5 lines in 2 files changed: 0 ins; 0 del; 5 mod
Patch: https://git.openjdk.java.net/jdk/pull/8761.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/8761/head:pull/8761
PR: https://git.openjdk.java.net/jdk/pull/8761
More information about the hotspot-dev
mailing list