8149642: gc/g1/TestShrinkAuxiliaryData* tests fail with "GC triggered before VM initialization completed"
stefan.johansson at oracle.com
Wed Mar 2 09:47:36 UTC 2016
Please review this small change to fix:
Using AggressiveOpts cause a lot more early allocations and together
with the TestShrinkAuxiliaryData* tests which specifies
ObjectAlignmentInBytes=256 we sometimes on small systems end up doing do
much allocations during startup that a GC is triggered before we are
ready for it. This has nothing to do with the test it self and can be
reproduce simply by running -version with the same options, as long as
the initial young generation is small enough we will fail.
This fix adds a @requires statement to these test to ensure that they
are not run with AggressiveOpts.
Verified locally and with RBT that the tests no longer fail (or even
run) when AggressiveOpts is specified.
More information about the hotspot-gc-dev