On Fri, 5 Jun 2026 08:11:11 GMT, Johan Sjölen <[email protected]> wrote:
> 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). This pull request has now been integrated. Changeset: 2e364c3a Author: Johan Sjölen <[email protected]> URL: https://git.openjdk.org/jdk/commit/2e364c3a0675e5ec29cac5ccc7ebc38d9d5699c5 Stats: 56 lines in 4 files changed: 25 ins; 26 del; 5 mod 8385991: Use StringTable's statistics method in Dictionary Reviewed-by: jsikstro, coleenp ------------- PR: https://git.openjdk.org/jdk/pull/31398
