[jdk21u-dev] RFR: 8354145: G1: UseCompressedOops boundary is calculated on maximum heap region size instead of maxiumum ergonomic heap region size
Paul Hohensee
phh at openjdk.org
Mon Dec 1 19:59:03 UTC 2025
On Fri, 28 Nov 2025 18:48:13 GMT, Daniel Hu <duke at openjdk.org> wrote:
> Fixes UseCompressedOops ergonomics to use original limits for G1 GC; prior to JDK18, `-Xmx32736m` by default enables UseCompressedOops but in JDK21 `-Xmx32736m` default sets UseCompressedOops to false. New test passes with change, fails without. Change passes GHA. Backport not clean due to [JDK-8330694](https://bugs.openjdk.org/browse/JDK-8330694) renaming `HeapRegion` to `G1HeapRegion`; modifications to the change are minimal as only had to "un-rename" the refactor.
What other testing have you done? We usually like to see at least jdk tier1, and tier2 if possible.
-------------
PR Review: https://git.openjdk.org/jdk21u-dev/pull/2497#pullrequestreview-3526714511
More information about the jdk-updates-dev
mailing list