< prev index next >

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

Print this page

        

*** 110,121 **** G1MonitoringSupport g1mm = g1h.g1mm(); long edenRegionNum = g1mm.edenRegionNum(); long survivorRegionNum = g1mm.survivorRegionNum(); HeapRegionSetBase oldSet = g1h.oldSet(); HeapRegionSetBase humongousSet = g1h.humongousSet(); ! long oldRegionNum = oldSet.count().length() ! + humongousSet.count().capacity() / HeapRegion.grainBytes(); printG1Space("G1 Heap:", g1h.n_regions(), g1h.used(), g1h.capacity()); System.out.println("G1 Young Generation:"); printG1Space("Eden Space:", edenRegionNum, g1mm.edenUsed(), g1mm.edenCommitted()); --- 110,120 ---- G1MonitoringSupport g1mm = g1h.g1mm(); long edenRegionNum = g1mm.edenRegionNum(); long survivorRegionNum = g1mm.survivorRegionNum(); HeapRegionSetBase oldSet = g1h.oldSet(); HeapRegionSetBase humongousSet = g1h.humongousSet(); ! long oldRegionNum = oldSet.length() + humongousSet.length(); printG1Space("G1 Heap:", g1h.n_regions(), g1h.used(), g1h.capacity()); System.out.println("G1 Young Generation:"); printG1Space("Eden Space:", edenRegionNum, g1mm.edenUsed(), g1mm.edenCommitted());
< prev index next >