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

Per Liden pliden at openjdk.java.net
Mon Sep 28 12:41:18 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.

Marked as reviewed by pliden (Reviewer).

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

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



More information about the hotspot-gc-dev mailing list