< prev index next >

test/gc/g1/TestShrinkDefragmentedHeap.java

Print this page

        

*** 30,39 **** --- 30,41 ---- * 2. release all allocated object except the last humongous one * "..................................H" * 3. invoke gc and check that memory returned to the system (amount of committed memory got down) * * @library /testlibrary + * @build com.oracle.java.testlibrary.* + * @run main/othervm TestShrinkDefragmentedHeap */ import java.lang.management.ManagementFactory; import java.lang.management.MemoryUsage; import java.util.ArrayList; import java.util.List;
< prev index next >