RFR: 8300184: Optimize ResourceHashtableBase::iterate_all using _number_of_entries [v2]

David Holmes dholmes at openjdk.org
Wed Jan 18 02:56:27 UTC 2023


On Tue, 17 Jan 2023 07:18:19 GMT, Xin Liu <xliu at openjdk.org> wrote:

> That's why I claim to optimize iterate_all rather than iterate.

A call to `iterate` can result in iterating all elements if the lambda does not find an element to trigger iteration to cease; in which case this optimisation also applies.

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

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


More information about the hotspot-dev mailing list