8078405: Heap decommit failed in TestShrinkAuxiliaryData tests
Summary: Modified test so options in the code are after the options from the environment, so -ExplicitGCInvokesConcurrent is always used.
Reviewed-by: tschatzl, kbarrett
--- a/hotspot/test/gc/g1/TestShrinkAuxiliaryData.java Wed Apr 29 15:32:05 2015 +0400
+++ b/hotspot/test/gc/g1/TestShrinkAuxiliaryData.java Wed Apr 29 15:25:41 2015 -0400
@@ -76,7 +76,6 @@
printTestInfo(maxCacheSize);
vmOpts.add("-XX:G1ConcRSLogCacheSize=" + hotCardTableSize);
- vmOpts.addAll(Arrays.asList(Utils.getTestJavaOpts()));
// for 32 bits ObjectAlignmentInBytes is not a option
if (Platform.is32bit()) {
@@ -98,7 +97,7 @@
private void performTest(List<String> opts) throws Exception {
ProcessBuilder pb
- = ProcessTools.createJavaProcessBuilder(
+ = ProcessTools.createJavaProcessBuilder(true,
opts.toArray(new String[opts.size()])
);
--- a/hotspot/test/gc/g1/TestShrinkAuxiliaryData05.java Wed Apr 29 15:32:05 2015 +0400
+++ b/hotspot/test/gc/g1/TestShrinkAuxiliaryData05.java Wed Apr 29 15:25:41 2015 -0400
@@ -23,7 +23,7 @@
/**
* @test TestShrinkAuxiliaryData05
- * @bug 8038423 8061715
+ * @bug 8038423 8061715 8078405
* @summary Checks that decommitment occurs for JVM with different
* G1ConcRSLogCacheSize and ObjectAlignmentInBytes options values
* @requires vm.gc=="G1" | vm.gc=="null"
--- a/hotspot/test/gc/g1/TestShrinkAuxiliaryData10.java Wed Apr 29 15:32:05 2015 +0400
+++ b/hotspot/test/gc/g1/TestShrinkAuxiliaryData10.java Wed Apr 29 15:25:41 2015 -0400
@@ -23,7 +23,7 @@
/**
* @test TestShrinkAuxiliaryData10
- * @bug 8038423 8061715
+ * @bug 8038423 8061715 8078405
* @summary Checks that decommitment occurs for JVM with different
* G1ConcRSLogCacheSize and ObjectAlignmentInBytes options values
* @requires vm.gc=="G1" | vm.gc=="null"
--- a/hotspot/test/gc/g1/TestShrinkAuxiliaryData15.java Wed Apr 29 15:32:05 2015 +0400
+++ b/hotspot/test/gc/g1/TestShrinkAuxiliaryData15.java Wed Apr 29 15:25:41 2015 -0400
@@ -23,7 +23,7 @@
/**
* @test TestShrinkAuxiliaryData15
- * @bug 8038423 8061715
+ * @bug 8038423 8061715 8078405
* @summary Checks that decommitment occurs for JVM with different
* G1ConcRSLogCacheSize and ObjectAlignmentInBytes options values
* @requires vm.gc=="G1" | vm.gc=="null"
--- a/hotspot/test/gc/g1/TestShrinkAuxiliaryData20.java Wed Apr 29 15:32:05 2015 +0400
+++ b/hotspot/test/gc/g1/TestShrinkAuxiliaryData20.java Wed Apr 29 15:25:41 2015 -0400
@@ -23,7 +23,7 @@
/**
* @test TestShrinkAuxiliaryData20
- * @bug 8038423 8061715
+ * @bug 8038423 8061715 8078405
* @summary Checks that decommitment occurs for JVM with different
* G1ConcRSLogCacheSize and ObjectAlignmentInBytes options values
* @requires vm.gc=="G1" | vm.gc=="null"
--- a/hotspot/test/gc/g1/TestShrinkAuxiliaryData25.java Wed Apr 29 15:32:05 2015 +0400
+++ b/hotspot/test/gc/g1/TestShrinkAuxiliaryData25.java Wed Apr 29 15:25:41 2015 -0400
@@ -23,7 +23,7 @@
/**
* @test TestShrinkAuxiliaryData25
- * @bug 8038423 8061715
+ * @bug 8038423 8061715 8078405
* @summary Checks that decommitment occurs for JVM with different
* G1ConcRSLogCacheSize and ObjectAlignmentInBytes options values
* @requires vm.gc=="G1" | vm.gc=="null"
--- a/hotspot/test/gc/g1/TestShrinkAuxiliaryData30.java Wed Apr 29 15:32:05 2015 +0400
+++ b/hotspot/test/gc/g1/TestShrinkAuxiliaryData30.java Wed Apr 29 15:25:41 2015 -0400
@@ -23,7 +23,7 @@
/**
* @test TestShrinkAuxiliaryData30
- * @bug 8038423 8061715
+ * @bug 8038423 8061715 8078405
* @summary Checks that decommitment occurs for JVM with different
* G1ConcRSLogCacheSize and ObjectAlignmentInBytes options values
* @requires vm.gc=="G1" | vm.gc=="null"