RFR: 8324933: ConcurrentHashTable::statistics_calculate synchronization is expensive [v3]
Erik Österlund
eosterlund at openjdk.org
Tue Feb 13 15:22:16 UTC 2024
> In the ConcurrentHashTable::statistics_calculate function, we enter and exit a ScopedCS with the global counter for every single bucket. This has showed up to be pretty intense on some machines. We should make the synchronization a bit less intense here. This patch adds simple batching so we synchronize once per 128 buckets instead of every single one.
Erik Österlund has updated the pull request incrementally with one additional commit since the last revision:
Build fix
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/17629/files
- new: https://git.openjdk.org/jdk/pull/17629/files/a6a7e3c8..3b26cf9c
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=17629&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=17629&range=01-02
Stats: 6 lines in 1 file changed: 0 ins; 3 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/17629.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17629/head:pull/17629
PR: https://git.openjdk.org/jdk/pull/17629
More information about the hotspot-dev
mailing list