RFR: 8292741: Convert JvmtiTagMapTable to ResourceHashtable
Coleen Phillimore
coleenp at openjdk.org
Tue Nov 29 22:54:13 UTC 2022
On Tue, 29 Nov 2022 12:22:38 GMT, Afshin Zafari <duke at openjdk.org> wrote:
>> Not sure ... didn't we start using C++ lambda's for some of these "closure" operations? @coleenp what is the usual pattern we use for this kind of thing?
>
> The `unlink` method of `ResourceHashTable` gets an ITER type and calls its `do_entry(Key&,Value&)` method.
> If we want to use lambdas, `unlink` should call the input directly and not one of its methods.
We don't have a lambda version of unlink (yet). The local struct is fine IMO.
-------------
PR: https://git.openjdk.org/jdk/pull/11288
More information about the hotspot-dev
mailing list