< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/g1/G1CollectedHeap.java

Print this page

        

*** 22,31 **** --- 22,32 ---- * */ package sun.jvm.hotspot.gc.g1; + import java.io.PrintStream; import java.util.Iterator; import java.util.Observable; import java.util.Observer; import sun.jvm.hotspot.debugger.Address;
*** 123,131 **** --- 124,141 ---- public CollectedHeapName kind() { return CollectedHeapName.G1_COLLECTED_HEAP; } + @Override + public void printOn(PrintStream tty) { + MemRegion mr = reservedRegion(); + + tty.print("garbage-first heap"); + tty.print(" [" + mr.start() + ", " + mr.end() + "]"); + tty.println(" region size " + (HeapRegion.grainBytes() / 1024) + "K"); + } + public G1CollectedHeap(Address addr) { super(addr); } }
< prev index next >