8149642: gc/g1/TestShrinkAuxiliaryData* tests fail with "GC triggered before VM initialization completed"

Dmitry Fazunenko dmitry.fazunenko at oracle.com
Wed Mar 2 10:24:26 UTC 2016


Hi Stefan,

Looks good, but copyrights...

I don't need an extra review.

Thanks,
Dima


On 02.03.2016 12:47, Stefan Johansson wrote:
> Hi,
>
> Please review this small change to fix:
> https://bugs.openjdk.java.net/browse/JDK-8149642
>
> Webrev:
> http://cr.openjdk.java.net/~sjohanss/8149642/hotspot.00/
>
> Summary:
> 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.
>
> Testing:
> Verified locally and with RBT that the tests no longer fail (or even 
> run) when AggressiveOpts is specified.
>
> Thanks,
> Stefan



More information about the hotspot-gc-dev mailing list