RFR: 8276789: Support C++ lambda in ResourceHashtable::iterate [v4]

Ioi Lam iklam at openjdk.java.net
Mon May 23 17:13:36 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:

  some clean up suggested by @stefank

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8761/files
  - new: https://git.openjdk.java.net/jdk/pull/8761/files/f3ca12ad..8c53c418

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8761&range=03
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8761&range=02-03

  Stats: 3 lines in 2 files changed: 0 ins; 0 del; 3 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