[jdk25u-dev] RFR: 8212084: G1: Implement UseGCOverheadLimit

Goetz Lindenmaier goetz at openjdk.org
Thu Dec 11 12:56:23 UTC 2025


I backport this for parity with 25.0.3-oracle.

src/hotspot/share/gc/g1/g1CollectedHeap.cpp
Deleting two blocks failed. The code is not in 25. It came by "8366865: Allocation GC Pauses Triggered after JVM has started shutdown". The original change just moved this code.  I omit adding it in the new location, too.

src/hotspot/share/gc/parallel/parallelArguments.cpp
Deleting one block failed. The code is not in 25.

src/hotspot/share/gc/parallel/parallelScavengeHeap.cpp
Omitted two patches that make only sense with "8338977: Parallel: Improve heap resizing heuristics"

src/hotspot/share/gc/parallel/parallelScavengeHeap.hpp
Omitted one patch that makes only sense with "8338977: Parallel: Improve heap resizing heuristics"

Compilation stumbles, as long_term_gc_time_ratio() is not available in 25.
This was introduced by "8359348: G1: Improve cpu usage measurements for heap sizing".
I replace it by it's predecessor method long_term_pause_time_ratio().
I also need a new include to make it compile. See second commit.

The new test runs with G1 and parallel GC.
As "8338977: Parallel: Improve heap resizing heuristics" is not in 25 and
I omitted the patches for parallelScavengeHeap.cpp form this change,
the test does not work.  I disabled it.  See third commit.

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

Commit messages:
 - Disable test for parallel GC as 8338977 is not in 25
 - Fixes as 8359348 is not in 25.
 - backport 3d2ce8045f9ea52c6559638f9cc7e0a0544b4540

Changes: https://git.openjdk.org/jdk25u-dev/pull/74/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=74&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8212084
  Stats: 186 lines in 4 files changed: 170 ins; 0 del; 16 mod
  Patch: https://git.openjdk.org/jdk25u-dev/pull/74.diff
  Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/74/head:pull/74

PR: https://git.openjdk.org/jdk25u-dev/pull/74


More information about the jdk-updates-dev mailing list