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

Erik Österlund eosterlund at openjdk.java.net
Mon Sep 28 13:47:56 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.

Looks good.

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

Marked as reviewed by eosterlund (Reviewer).

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



More information about the hotspot-gc-dev mailing list