agent/src/share/classes/sun/jvm/hotspot/tools/HeapSummary.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hs-gc9 Cdiff agent/src/share/classes/sun/jvm/hotspot/tools/HeapSummary.java

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

Print this page

        

*** 112,122 **** G1MonitoringSupport g1mm = g1h.g1mm(); long edenRegionNum = g1mm.edenRegionNum(); long survivorRegionNum = g1mm.survivorRegionNum(); HeapRegionSetBase oldSet = g1h.oldSet(); HeapRegionSetBase humongousSet = g1h.humongousSet(); ! long oldRegionNum = oldSet.regionNum() + humongousSet.regionNum(); printG1Space("G1 Heap:", g1h.n_regions(), g1h.used(), g1h.capacity()); System.out.println("G1 Young Generation:"); printG1Space("Eden Space:", edenRegionNum, g1mm.edenUsed(), g1mm.edenCommitted()); --- 112,123 ---- 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());
agent/src/share/classes/sun/jvm/hotspot/tools/HeapSummary.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File