RFR: 8331675: gtest CollectorPolicy.young_min_ergo_vm fails after 8272364

Thomas Schatzl tschatzl at openjdk.org
Mon Jun 10 11:37:11 UTC 2024


On Mon, 10 Jun 2024 09:53:02 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Remove a gtest test case around `NewSize`.
> 
> The gtest `young_min_ergo` essentially checks NewSize 20M set ergonomically will be preserved and MinNewSize will be <= 20M. However, the GCArguments::initialize_heap_sizes can overwrite the 20M value, in the process of respecting `InitialHeapSize` and `NewRatio`.
> 
> A more correct assert would be `ASSERT_LE(MinNewSize, NewSize);` in `CheckYoungMin` so that the up-to-date `NewSize` is picked up. The `MinNewSize <= NewSize` invariant is already checked in `GenArguments::assert_size_info`, so this gtest offers little benefit.

Marked as reviewed by tschatzl (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/19621#pullrequestreview-2107537461


More information about the hotspot-gc-dev mailing list