RFR: 8292741: Convert JvmtiTagMapTable to ResourceHashtable

Coleen Phillimore coleenp at openjdk.org
Tue Nov 29 22:54:10 UTC 2022


On Mon, 28 Nov 2022 22:16:34 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Coleen's suggestion for efficiency reasons.
>
> If the comment is meant to suggest some possible future optimisation it should say that.

Oh you should uncomment that code. The hashtable that this replaces has the same early cut-out for efficiency.   You can also have an early cut out if the hashtable is empty, like if (is_empty()) { return 0 }

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

PR: https://git.openjdk.org/jdk/pull/11288


More information about the serviceability-dev mailing list