Integrated: 8376051: gc/stress/TestStressG1Uncommit.java fails assertLessThan: expected that xxx < xxx
SendaoYan
syan at openjdk.org
Fri Jan 23 01:00:26 UTC 2026
On Thu, 22 Jan 2026 06:33:13 GMT, SendaoYan <syan at openjdk.org> wrote:
> Hi all,
>
> [JDK-8238686](https://bugs.openjdk.org/browse/JDK-8238686) change the default value MinHeapFreeRatio/MaxHeapFreeRatio to 0/100, this change make G1 do less uncommit heap memory to OS system, this will make test test/hotspot/jtreg/gc/stress/TestStressG1Uncommit.java fails "assertLessThan: expected that xxx < xxx", and the tested java process never print "Uncommit regions" which checked by this test.
>
> This PR set MinHeapFreeRatio/MaxHeapFreeRatio to the original value 40/70 to make this test work expectly.
>
> Change has been verified locally on linux-x64 by run this tests both with release build and fastdebug build.
This pull request has now been integrated.
Changeset: 0f087a7f
Author: SendaoYan <syan at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0f087a7fef2d3979badefde02a1e85351379f18c
Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod
8376051: gc/stress/TestStressG1Uncommit.java fails assertLessThan: expected that xxx < xxx
Reviewed-by: tschatzl, shade
-------------
PR: https://git.openjdk.org/jdk/pull/29357
More information about the hotspot-gc-dev
mailing list