Hi,

- Switch the statistics gathering code to be the same as for the string table 
(both being based on the statistics gathering in CHT)
- Remove the old `statistics_get` function in CHT, as it's now unused
- Some minor changes to improve clarity in `VM_DumpHashtable` (`DumpSysDict` 
was actually implemented)

The old `Dictionary` statistics fetching function seemed very broken to me as 
it would return the statistics to another table if the table's `resize_lock` 
was already held by another thread. Just using the same mechanism seems 
reasonable.

Testing: GHA and manually ran `jcmd $PID VM.systemdictionary`

---------
- [X] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - Fix stuff

Changes: https://git.openjdk.org/jdk/pull/31398/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31398&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8385991
  Stats: 54 lines in 4 files changed: 23 ins; 26 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/31398.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31398/head:pull/31398

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

Reply via email to