8064716: TestHumongousShrinkHeap.java can not be run with -XX:+ExplicitGCInvokesConcurrent
authorazakharov
Fri, 14 Nov 2014 17:36:56 +0400
changeset 27605 a162df7acd89
parent 27557 82f4cb44b2d7
child 27606 1c687c6de038
8064716: TestHumongousShrinkHeap.java can not be run with -XX:+ExplicitGCInvokesConcurrent 8062957: Heap is not shrunk when deallocating under memory pressure Summary: Added explicit -XX:-ExplicitGCInvokesConcurrent to invocations Reviewed-by: brutisso, tschatzl
hotspot/test/gc/g1/TestHumongousShrinkHeap.java
hotspot/test/gc/g1/TestShrinkAuxiliaryData.java
hotspot/test/gc/g1/TestShrinkDefragmentedHeap.java
--- a/hotspot/test/gc/g1/TestHumongousShrinkHeap.java	Wed Jul 05 20:07:55 2017 +0200
+++ b/hotspot/test/gc/g1/TestHumongousShrinkHeap.java	Fri Nov 14 17:36:56 2014 +0400
@@ -24,9 +24,12 @@
 /**
  * @test TestHumongousShrinkHeap
  * @bug 8036025 8056043
- * @summary Verify that heap shrinks after GC in the presence of fragmentation due to humongous objects
+ * @summary Verify that heap shrinks after GC in the presence of fragmentation
+ * due to humongous objects
  * @library /testlibrary
- * @run main/othervm -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=12 -XX:+UseG1GC -XX:G1HeapRegionSize=1M -verbose:gc TestHumongousShrinkHeap
+ * @run main/othervm -XX:-ExplicitGCInvokesConcurrent -XX:MinHeapFreeRatio=10
+ * -XX:MaxHeapFreeRatio=12 -XX:+UseG1GC -XX:G1HeapRegionSize=1M -verbose:gc
+ * TestHumongousShrinkHeap
  */
 
 import java.lang.management.ManagementFactory;
--- a/hotspot/test/gc/g1/TestShrinkAuxiliaryData.java	Wed Jul 05 20:07:55 2017 +0200
+++ b/hotspot/test/gc/g1/TestShrinkAuxiliaryData.java	Fri Nov 14 17:36:56 2014 +0400
@@ -45,6 +45,7 @@
         "-XX:MaxHeapFreeRatio=11",
         "-XX:+UseG1GC",
         "-XX:G1HeapRegionSize=1m",
+        "-XX:-ExplicitGCInvokesConcurrent",
         "-XX:+PrintGCDetails"
     };
 
--- a/hotspot/test/gc/g1/TestShrinkDefragmentedHeap.java	Wed Jul 05 20:07:55 2017 +0200
+++ b/hotspot/test/gc/g1/TestShrinkDefragmentedHeap.java	Fri Nov 14 17:36:56 2014 +0400
@@ -59,6 +59,7 @@
                 "-XX:MaxHeapFreeRatio=11",
                 "-XX:+UseG1GC",
                 "-XX:G1HeapRegionSize=" + REGION_SIZE,
+                "-XX:-ExplicitGCInvokesConcurrent",
                 "-verbose:gc",
                 GCTest.class.getName()
         );