RFR: 8359272: Several vmTestbase/compact tests timed out on large memory machine

Thomas Schatzl tschatzl at openjdk.org
Thu Jun 12 10:56:27 UTC 2025


On Thu, 12 Jun 2025 07:45:49 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> 
> We observed 4 vmTestbase/vm/gc/compact tests run timed out on large physical memory machine (755G memory) with jtreg args `-timeoutFactor:4`. The other vmTestbase tests do not observed the same failure.
> The tested class `vm.gc.compact.Compact` create lots objects util trigger OOM exception. But if the tested machine has very large physica memory, these tests need takes a lots of time to finish.
> So this PR add jvm args `-Xmx3G` to make these tests will run finish in a deterministic time. Change has been verified locally, test-fix only, no risk.

Although it would probably be better to fix all the other tests preemptively too - I could not find a particular reason why only these particular tests would be that slow (there are more string related tests in that directory) - it seems fine to just fix these.
There does not seem to be any difference between using a larger or smaller heap either.

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

Marked as reviewed by tschatzl (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/25771#pullrequestreview-2920545620


More information about the hotspot-gc-dev mailing list