RFR: 8233378: CHT: Fast reset

Robbin Ehn rehn at openjdk.java.net
Tue May 11 13:19:23 UTC 2021


On Mon, 10 May 2021 14:08:28 GMT, Ivan Walulya <iwalulya at openjdk.org> wrote:

> Hi all,
> 
> Please review this change to add a dedicated method that just resets the internal table (optionally setting it to a new size) without going through new/delete of the CHT. Currently, the CHT destructor calls Value::destroy_node() on every element in the table which may be very slow for some use-cases.
> 
> Testing: tier 1-3 (Linux, Windows).

Looks ok! Thanks for also adding the gtests.

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

Marked as reviewed by rehn (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/3950


More information about the hotspot-dev mailing list