8064716: TestHumongousShrinkHeap.java can not be run with -XX:+ExplicitGCInvokesConcurrent

Fri, 14 Nov 2014 17:39:07 +0400

author
azakharov
date
Fri, 14 Nov 2014 17:39:07 +0400
changeset 7337
7a6313074325
parent 7335
b8ca8ec1daea
child 7338
eb16b24e2eba

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

test/gc/g1/TestHumongousShrinkHeap.java file | annotate | diff | comparison | revisions
test/gc/g1/TestShrinkAuxiliaryData.java file | annotate | diff | comparison | revisions
test/gc/g1/TestShrinkDefragmentedHeap.java file | annotate | diff | comparison | revisions
     1.1 --- a/test/gc/g1/TestHumongousShrinkHeap.java	Fri Nov 07 09:22:59 2014 -0800
     1.2 +++ b/test/gc/g1/TestHumongousShrinkHeap.java	Fri Nov 14 17:39:07 2014 +0400
     1.3 @@ -24,9 +24,12 @@
     1.4  /**
     1.5   * @test TestHumongousShrinkHeap
     1.6   * @bug 8036025 8056043
     1.7 - * @summary Verify that heap shrinks after GC in the presence of fragmentation due to humongous objects
     1.8 + * @summary Verify that heap shrinks after GC in the presence of fragmentation
     1.9 + * due to humongous objects
    1.10   * @library /testlibrary
    1.11 - * @run main/othervm -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=12 -XX:+UseG1GC -XX:G1HeapRegionSize=1M -verbose:gc TestHumongousShrinkHeap
    1.12 + * @run main/othervm -XX:-ExplicitGCInvokesConcurrent -XX:MinHeapFreeRatio=10
    1.13 + * -XX:MaxHeapFreeRatio=12 -XX:+UseG1GC -XX:G1HeapRegionSize=1M -verbose:gc
    1.14 + * TestHumongousShrinkHeap
    1.15   */
    1.16  
    1.17  import java.lang.management.ManagementFactory;
     2.1 --- a/test/gc/g1/TestShrinkAuxiliaryData.java	Fri Nov 07 09:22:59 2014 -0800
     2.2 +++ b/test/gc/g1/TestShrinkAuxiliaryData.java	Fri Nov 14 17:39:07 2014 +0400
     2.3 @@ -45,6 +45,7 @@
     2.4          "-XX:MaxHeapFreeRatio=11",
     2.5          "-XX:+UseG1GC",
     2.6          "-XX:G1HeapRegionSize=1m",
     2.7 +        "-XX:-ExplicitGCInvokesConcurrent",
     2.8          "-XX:+PrintGCDetails"
     2.9      };
    2.10  
     3.1 --- a/test/gc/g1/TestShrinkDefragmentedHeap.java	Fri Nov 07 09:22:59 2014 -0800
     3.2 +++ b/test/gc/g1/TestShrinkDefragmentedHeap.java	Fri Nov 14 17:39:07 2014 +0400
     3.3 @@ -59,6 +59,7 @@
     3.4                  "-XX:MaxHeapFreeRatio=11",
     3.5                  "-XX:+UseG1GC",
     3.6                  "-XX:G1HeapRegionSize=" + REGION_SIZE,
     3.7 +                "-XX:-ExplicitGCInvokesConcurrent",
     3.8                  "-verbose:gc",
     3.9                  GCTest.class.getName()
    3.10          );

mercurial