RFR: 8372993: Serial: max_eden_size is too small after JDK-8368740 [v3]
Joel Sikström
jsikstro at openjdk.org
Wed Dec 3 12:49:39 UTC 2025
> Hello,
>
> `_max_eden_size` does not represent the actual upper-limit of how large eden might grow. The upper-limit was changed in (JDK-8368740)[https://bugs.openjdk.org/browse/JDK-8368740], so that eden might now grow to be as large as the entire young generation. We run into an exception when trying to use this value through the MemoryUsage Java API. If the committed memory in eden is larger than `_max_eden_size`, we throw an exception in the Java constructor of MemoryUsage: https://github.com/openjdk/jdk/blob/master/src/java.management/share/classes/java/lang/management/MemoryUsage.java#L165-L168
>
> Testing:
> * Oracle's tier1-4
Joel Sikström has updated the pull request incrementally with one additional commit since the last revision:
Test fix for TestNewSizeFlags.java to reflect bew max of young gen spaces
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/28630/files
- new: https://git.openjdk.org/jdk/pull/28630/files/b01fb981..db987454
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=28630&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=28630&range=01-02
Stats: 14 lines in 1 file changed: 14 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/28630.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28630/head:pull/28630
PR: https://git.openjdk.org/jdk/pull/28630
More information about the hotspot-gc-dev
mailing list