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

Christoph Göttschkes cgo at openjdk.java.net
Wed Feb 17 10:44:51 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`.

This pull request has now been integrated.

Changeset: c7885eb1
Author:    Christoph Göttschkes <cgo at openjdk.org>
Committer: Thomas Schatzl <tschatzl at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/c7885eb1
Stats:     1 line in 1 file changed: 1 ins; 0 del; 0 mod

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

Reviewed-by: tschatzl, sjohanss

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

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



More information about the hotspot-gc-dev mailing list