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

Bengt Rutisson bengt.rutisson at oracle.com
Wed Mar 2 10:11:38 UTC 2016


Hi Stefan,

On 2016-03-02 10: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/

Looks good.

Bengt

>
> 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