RFR: 8261758: [TESTBUG] gc/g1/TestGCLogMessages.java fails if ergonomics detect too small InitialHeapSize
Christoph Göttschkes
cgo at openjdk.java.net
Mon Feb 15 15:25:54 UTC 2021
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`.
-------------
Commit messages:
- Fixes indention.
- Adds -Xms = -Xmx to not rely on ergonomics.
Changes: https://git.openjdk.java.net/jdk/pull/2577/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2577&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8261758
Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/2577.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/2577/head:pull/2577
PR: https://git.openjdk.java.net/jdk/pull/2577
More information about the hotspot-gc-dev
mailing list