Integrated: 8324933: ConcurrentHashTable::statistics_calculate synchronization is expensive

Erik Österlund eosterlund at openjdk.org
Thu Feb 15 09:30:07 UTC 2024


On Tue, 30 Jan 2024 10:48:18 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:

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

This pull request has now been integrated.

Changeset: 0e2fdc95
Author:    Erik Österlund <eosterlund at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/0e2fdc95ae47c11e6a1e47cdc6190268e29a9d9c
Stats:     20 lines in 1 file changed: 8 ins; 1 del; 11 mod

8324933: ConcurrentHashTable::statistics_calculate synchronization is expensive

Reviewed-by: tschatzl, coleenp

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

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


More information about the hotspot-dev mailing list