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

Leonid Mesnik lmesnik at openjdk.org
Wed Aug 21 04:05:02 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

The test failed in GHA, moving to draft state.

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

PR Comment: https://git.openjdk.org/jdk/pull/20656#issuecomment-2300714000


More information about the hotspot-gc-dev mailing list