RFR: 8261758: [TESTBUG] gc/g1/TestGCLogMessages.java fails if ergonomics detect too small InitialHeapSize
Christoph Göttschkes
cgo at openjdk.java.net
Wed Feb 17 08:13:45 UTC 2021
On Tue, 16 Feb 2021 08:50:48 GMT, Thomas Schatzl <tschatzl 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).
Thanks for the review.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2577
More information about the hotspot-gc-dev
mailing list