< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/HeapSummary.java

Print this page

        

*** 23,32 **** --- 23,33 ---- */ package sun.jvm.hotspot.tools; import java.util.*; + import sun.jvm.hotspot.gc.epsilon.*; import sun.jvm.hotspot.gc.g1.*; import sun.jvm.hotspot.gc.parallel.*; import sun.jvm.hotspot.gc.serial.*; import sun.jvm.hotspot.gc.shared.*; import sun.jvm.hotspot.debugger.JVMDebugger;
*** 122,131 **** --- 123,135 ---- System.out.println("PS Old Generation"); printValMB("capacity = ", oldGen.capacity()); printValMB("used = ", oldGen.used()); printValMB("free = ", oldFree); System.out.println(alignment + (double)oldGen.used() * 100.0 / oldGen.capacity() + "% used"); + } else if (heap instanceof EpsilonHeap) { + EpsilonHeap eh = (EpsilonHeap) heap; + printSpace(eh.space()); } else { throw new RuntimeException("unknown CollectedHeap type : " + heap.getClass()); } System.out.println();
*** 159,168 **** --- 163,178 ---- l = getFlagValue("ParallelGCThreads", flagMap); System.out.println("with " + l + " thread(s)"); return; } + l = getFlagValue("UseEpsilonGC", flagMap); + if (l == 1L) { + System.out.println("Epsilon (no-op) GC"); + return; + } + System.out.println("Mark Sweep Compact GC"); } private void printPSYoungGen(PSYoungGen youngGen) { System.out.println("PS Young Generation");
< prev index next >