Integrated: 8274178: G1: Occupancy value in IHOP logging and JFR event is inaccurate

Thomas Schatzl tschatzl at openjdk.org
Thu Nov 13 13:58:27 UTC 2025


On Thu, 6 Nov 2025 10:33:46 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> Hi all,
> 
>   please review this change that modifies heap occupancy reporting for IHOP to use the actual occupancy value the IHOP calculation actually uses.
> 
> I.e. previously IHOP logging used to report `G1CollectedHeap::used()` as occupancy (which is correct at a general level), but for IHOP/marking that value is not interesting, but the "occupancy" value used for comparing against the current heap occupancy threshold.
> 
> Testing: tier1-3, GHA
> 
> Thomas

This pull request has now been integrated.

Changeset: 7d78818a
Author:    Thomas Schatzl <tschatzl at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/7d78818ae609461ab830c32c222f15f1cab0d2d4
Stats:     120 lines in 9 files changed: 42 ins; 29 del; 49 mod

8274178: G1: Occupancy value in IHOP logging and JFR event is inaccurate
8371635: G1: Young gen allocations should never be considered when comparing against IHOP threshold

Reviewed-by: ayang, iwalulya

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

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


More information about the hotspot-gc-dev mailing list