RFR: 8161604: TestNewSizeFlags fails with RuntimeException: max new size != MaxNewSize value
michail.chernov at oracle.com
Fri Jul 22 19:21:58 UTC 2016
Could I have a reviews for this change, please?
The problem with test happens on host with huge pages size (64k). This
causes to 32Mb heap alignment.
Test now uses heap alignment to check actual sizes of MaxHeapSize and
InitialHeapSize. In case if they are equal MaxNewSize and NewSize are
set to same value by the GC ergonomic.
Added new method to WhiteBox to get heap alignment value. The existing
methods which are used in test and uses Parallel GC are guarded by
INCLUDE_ALL_GCS and executed real code only if UseParallelGC is set.
Test case for NewSize=0 was removed because it can cause to VM
initialization error (See https://bugs.openjdk.java.net/browse/JDK-8162420).
Added test case for MaxHeapSize == InitialHeapSize.
Testing is in progress.
More information about the hotspot-gc-dev