-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
hs11
-
generic
-
generic
closed/vm/gc/ArraySize.java fails with "Didn't throw expected OutOfMemoryError" error
in case ParallelGC or ParallelOldGC is used.
The problem is becase default heap size for Parallel GCs is calculated based on amount of available RAM, so in case of 16Gb the max heap size is set to 4Gb.
This is enougth for this test and as result no OOM is thrown.
The test fails at least starting from hs11-b06 (didn't try with < b06 builds).
The test passes with hs10.
So, it seems default heap size policy for ParallelGCs was changed in some HS11 builds.
in case ParallelGC or ParallelOldGC is used.
The problem is becase default heap size for Parallel GCs is calculated based on amount of available RAM, so in case of 16Gb the max heap size is set to 4Gb.
This is enougth for this test and as result no OOM is thrown.
The test fails at least starting from hs11-b06 (didn't try with < b06 builds).
The test passes with hs10.
So, it seems default heap size policy for ParallelGCs was changed in some HS11 builds.