Integrated: 8253646: ZGC: Avoid overhead of sorting ZStatIterableValues on bootstrap

Claes Redestad redestad at openjdk.java.net
Mon Sep 28 15:17:33 UTC 2020


On Sat, 26 Sep 2020 23:42:26 GMT, Claes Redestad <redestad at openjdk.org> wrote:

> - Defer sorting to when starting the ZStat thread
> - Improve the sorting logic to avoid unnecessary strcmps
> - Only sort those ZStat objects that actually needs to be sorted
> 
> This reduces bootstrap overhead due sorting from around 75k to around 29k instructions when ZStat service is started,
> and removes it almost completely otherwise.

This pull request has now been integrated.

Changeset: 8e338f67
Author:    Claes Redestad <redestad at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/8e338f67
Stats:     34 lines in 2 files changed: 21 ins; 4 del; 9 mod

8253646: ZGC: Avoid overhead of sorting ZStatIterableValues on bootstrap

Reviewed-by: pliden, eosterlund

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

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



More information about the hotspot-gc-dev mailing list