RFR: 8161604: TestNewSizeFlags fails with RuntimeException: max new size != MaxNewSize value
sangheon.kim at oracle.com
Tue Jul 26 20:19:19 UTC 2016
On 07/22/2016 12:21 PM, Michail Chernov wrote:
> 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.
I assume the test were okay.
Looks good and thanks for removing repeated codes.
One minor comment is, how about adding above explanation of using
psVirtualSpaceAlignment() is okay regardless of GC type?
I don't need a new webrev for this, if you like.
> Test case for NewSize=0 was removed because it can cause to VM
> initialization error (See
> Added test case for MaxHeapSize == InitialHeapSize.
> Testing is in progress.
More information about the hotspot-gc-dev