8159606: gc/g1/TestShrinkAuxiliaryData* tests fail because GC triggered before VM initialization completed
Reviewed-by: tschatzl
--- a/hotspot/test/gc/g1/TestShrinkAuxiliaryData.java Wed Jul 27 21:16:38 2016 +0400
+++ b/hotspot/test/gc/g1/TestShrinkAuxiliaryData.java Wed Jul 27 18:43:52 2016 +0300
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -44,6 +44,7 @@
private static final int REGION_SIZE = 1024 * 1024;
private final static String[] initialOpts = new String[]{
+ "-XX:NewSize=16m",
"-XX:MinHeapFreeRatio=10",
"-XX:MaxHeapFreeRatio=11",
"-XX:+UseG1GC",