RFR: 8261758: [TESTBUG] gc/g1/TestGCLogMessages.java fails if ergonomics detect too small InitialHeapSize

Thomas Schatzl tschatzl at openjdk.java.net
Tue Feb 16 08:53:42 UTC 2021


On Mon, 15 Feb 2021 15:20:56 GMT, Christoph Göttschkes <cgo at openjdk.org> wrote:

> Adds an explicit -Xms to one part of the test case, to not rely on ergonomics to detect the correct InitialHeapSize.
> 
> It looks like one part of the whole test case implicitly relied on the fact, that `InitialHeapSize` == `MaxHeapSize`. Since the `MaxHeapSize` is very small (32M), this is almost always true. But if the test device has less than 2G of memory, the ergonomics configure the `InitialHeapSize` to be smaller than the `MaxHeapSize`.

Marked as reviewed by tschatzl (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/2577



More information about the hotspot-gc-dev mailing list