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 00:24:07 UTC 2024
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
-------------
Commit messages:
- typo fixed.
- size updated.
- gtest has been updated.
Changes: https://git.openjdk.org/jdk/pull/20656/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20656&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8258483
Stats: 12 lines in 1 file changed: 9 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/20656.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20656/head:pull/20656
PR: https://git.openjdk.org/jdk/pull/20656
More information about the hotspot-gc-dev
mailing list