RFR: 8233378: CHT: Fast reset

Ivan Walulya iwalulya at openjdk.java.net
Mon May 10 14:15:36 UTC 2021


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).

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

Commit messages:
 - Add cht_reset method

Changes: https://git.openjdk.java.net/jdk/pull/3950/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3950&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8233378
  Stats: 101 lines in 3 files changed: 98 ins; 0 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3950.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3950/head:pull/3950

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


More information about the hotspot-dev mailing list