RFR: 8160827: gc/stress/TestStressG1Humongous.java fails with OOME
thomas.schatzl at oracle.com
Tue Jul 19 11:45:56 UTC 2016
On Thu, 2016-07-14 at 20:41 +0300, Michail Chernov wrote:
> Could I have a review for this change, please?
> Test gc/stress/TestStressG1Humongous.java fails on some hosts due to
> OOME. OOME is happened at
> .addConditionWaiter. At my point of view, this is not related to
> humongous allocation and GC work. This change gives more free space
> for VM.
> Tested on different configuration and different hosts - test passed.
looks okay to me.
Maybe also make sure that the value returned
by getExpectedAmountOfObjects() is not negative? Very unlikely, but
somebody may ask. Then again, I am not sure what the result of the
remaining program would be in case this test were run with a very small
Maybe with some @run flag make sure that we can't get a too small heap
(or check this in the test), not sure what the best way is.
However, this seems to be kind of out of scope for this CR.
More information about the hotspot-gc-dev