RFR: 8276789: Support C++ lambda in ResourceHashtable::iterate [v3]
Ioi Lam
iklam at openjdk.java.net
Wed May 18 17:01:38 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 two additional commits since the last revision:
- Fixed typo in comment (it loader -> its loader)
- Better naming of variables. E.g., (F f) -> (Function function), as suggested by @@stefank
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/8761/files
- new: https://git.openjdk.java.net/jdk/pull/8761/files/97cf613a..f3ca12ad
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8761&range=02
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8761&range=01-02
Stats: 31 lines in 4 files changed: 0 ins; 2 del; 29 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