提交 be690fa6 编写于 作者: A azakharov

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
上级 754711e5
...@@ -24,9 +24,12 @@ ...@@ -24,9 +24,12 @@
/** /**
* @test TestHumongousShrinkHeap * @test TestHumongousShrinkHeap
* @bug 8036025 8056043 * @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 * @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; import java.lang.management.ManagementFactory;
......
...@@ -45,6 +45,7 @@ public class TestShrinkAuxiliaryData { ...@@ -45,6 +45,7 @@ public class TestShrinkAuxiliaryData {
"-XX:MaxHeapFreeRatio=11", "-XX:MaxHeapFreeRatio=11",
"-XX:+UseG1GC", "-XX:+UseG1GC",
"-XX:G1HeapRegionSize=1m", "-XX:G1HeapRegionSize=1m",
"-XX:-ExplicitGCInvokesConcurrent",
"-XX:+PrintGCDetails" "-XX:+PrintGCDetails"
}; };
......
...@@ -59,6 +59,7 @@ public class TestShrinkDefragmentedHeap { ...@@ -59,6 +59,7 @@ public class TestShrinkDefragmentedHeap {
"-XX:MaxHeapFreeRatio=11", "-XX:MaxHeapFreeRatio=11",
"-XX:+UseG1GC", "-XX:+UseG1GC",
"-XX:G1HeapRegionSize=" + REGION_SIZE, "-XX:G1HeapRegionSize=" + REGION_SIZE,
"-XX:-ExplicitGCInvokesConcurrent",
"-verbose:gc", "-verbose:gc",
GCTest.class.getName() GCTest.class.getName()
); );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册