Mercurial > hg > graal-jvmci-8
comparison test/gc/g1/TestHumongousShrinkHeap.java @ 20623:7a6313074325
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
author | azakharov |
---|---|
date | Fri, 14 Nov 2014 17:39:07 +0400 |
parents | 9b8bd21b6823 |
children | f967da7f0c3c |
comparison
equal
deleted
inserted
replaced
20621:b8ca8ec1daea | 20623:7a6313074325 |
---|---|
22 */ | 22 */ |
23 | 23 |
24 /** | 24 /** |
25 * @test TestHumongousShrinkHeap | 25 * @test TestHumongousShrinkHeap |
26 * @bug 8036025 8056043 | 26 * @bug 8036025 8056043 |
27 * @summary Verify that heap shrinks after GC in the presence of fragmentation due to humongous objects | 27 * @summary Verify that heap shrinks after GC in the presence of fragmentation |
28 * due to humongous objects | |
28 * @library /testlibrary | 29 * @library /testlibrary |
29 * @run main/othervm -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=12 -XX:+UseG1GC -XX:G1HeapRegionSize=1M -verbose:gc TestHumongousShrinkHeap | 30 * @run main/othervm -XX:-ExplicitGCInvokesConcurrent -XX:MinHeapFreeRatio=10 |
31 * -XX:MaxHeapFreeRatio=12 -XX:+UseG1GC -XX:G1HeapRegionSize=1M -verbose:gc | |
32 * TestHumongousShrinkHeap | |
30 */ | 33 */ |
31 | 34 |
32 import java.lang.management.ManagementFactory; | 35 import java.lang.management.ManagementFactory; |
33 import java.lang.management.MemoryUsage; | 36 import java.lang.management.MemoryUsage; |
34 import java.util.ArrayList; | 37 import java.util.ArrayList; |