Integrated: 8258483: [TESTBUG] gtest CollectorPolicy.young_scaled_initial_ergo_vm fails if heap is too small

Leonid Mesnik lmesnik at openjdk.org
Wed Aug 28 20:21:25 UTC 2024


On Wed, 21 Aug 2024 00:16:26 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> The tests CollectorPolicy.* checks SerialGC policy. They might fail if MaxHeapSize is too small.
> 
> If heap is not enough for then VM change ergonomic scheme and print warning about this. The test is not checking this case.
> The GC ergonomic has very different cases and only main workflow is covered. The goal of fix is not to improve test but pass in reasonable environment or silently pass if other.
> 
> I have updated test so it pass if heap is at least 128M (since it is SerialGC, it seems reasonable for testing in smaller containers) or skipped otherwise. 
> 
> Testing: tier1, running these tests manually with 90/128/256M to check that they pass in such environment.

This pull request has now been integrated.

Changeset: d08b5bd9
Author:    Leonid Mesnik <lmesnik at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d08b5bd9f5f740d75c1acfbd644ce1c822e03833
Stats:     12 lines in 1 file changed: 9 ins; 0 del; 3 mod

8258483: [TESTBUG] gtest CollectorPolicy.young_scaled_initial_ergo_vm fails if heap is too small

Reviewed-by: ayang

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

PR: https://git.openjdk.org/jdk/pull/20656


More information about the hotspot-gc-dev mailing list