Integrated: 8332516: Serial: Always sample promoted bytes to avoid getting stuck in Full GCs
Albert Mingkun Yang
ayang at openjdk.org
Fri Jun 7 08:17:18 UTC 2024
On Mon, 20 May 2024 09:05:09 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:
> Simple heuristic update around how promoted-bytes are tracked. The real change is in `TenuredGeneration::update_promote_stats`, which uses `used-old-gen` before/after gc to derived promoted-bytes.
>
> The metric is imprecise in the cases of promotion-failure, because those should be rare. Also, after full-gc, used-old-gen an be decreased; in this case, we'd set promoted bytes as the min value (zero), the best-effort estimate.
This pull request has now been integrated.
Changeset: a2030fff
Author: Albert Mingkun Yang <ayang at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a2030fff9833aba40e8c7c177151a30a0812a250
Stats: 31 lines in 4 files changed: 6 ins; 16 del; 9 mod
8332516: Serial: Always sample promoted bytes to avoid getting stuck in Full GCs
Reviewed-by: iwalulya, tschatzl
-------------
PR: https://git.openjdk.org/jdk/pull/19306
More information about the hotspot-gc-dev
mailing list