RFR: 8376051: gc/stress/TestStressG1Uncommit.java fails assertLessThan: expected that xxx < xxx

SendaoYan syan at openjdk.org
Thu Jan 22 10:09:56 UTC 2026


On Thu, 22 Jan 2026 09:17:19 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> I don't see why do we need `WhiteBox` for this? Why wouldn't `System.gc()` suffice?

I do not observed this test fails intermittently. Maybe `System.gc()` will be suffice, I think `WhiteBox` will make test more robustness.

I think revert the `WhiteBox` change also acceptable. Should I do that?

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

PR Comment: https://git.openjdk.org/jdk/pull/29357#issuecomment-3783559487


More information about the hotspot-gc-dev mailing list