Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/tools/HeapSummary.java @ 17736:58fc1b1523dc
8034079: G1: Refactor the HeapRegionSet hierarchy
Reviewed-by: tschatzl, pliden
author | brutisso |
---|---|
date | Fri, 14 Mar 2014 10:15:46 +0100 |
parents | 55fb97c4c58d |
children | 52b4284cb496 |
comparison
equal
deleted
inserted
replaced
17735:8f28240318a2 | 17736:58fc1b1523dc |
---|---|
112 G1MonitoringSupport g1mm = g1h.g1mm(); | 112 G1MonitoringSupport g1mm = g1h.g1mm(); |
113 long edenRegionNum = g1mm.edenRegionNum(); | 113 long edenRegionNum = g1mm.edenRegionNum(); |
114 long survivorRegionNum = g1mm.survivorRegionNum(); | 114 long survivorRegionNum = g1mm.survivorRegionNum(); |
115 HeapRegionSetBase oldSet = g1h.oldSet(); | 115 HeapRegionSetBase oldSet = g1h.oldSet(); |
116 HeapRegionSetBase humongousSet = g1h.humongousSet(); | 116 HeapRegionSetBase humongousSet = g1h.humongousSet(); |
117 long oldRegionNum = oldSet.regionNum() + humongousSet.regionNum(); | 117 long oldRegionNum = oldSet.count().length() |
118 + humongousSet.count().capacity() / HeapRegion.grainBytes(); | |
118 printG1Space("G1 Heap:", g1h.n_regions(), | 119 printG1Space("G1 Heap:", g1h.n_regions(), |
119 g1h.used(), g1h.capacity()); | 120 g1h.used(), g1h.capacity()); |
120 System.out.println("G1 Young Generation:"); | 121 System.out.println("G1 Young Generation:"); |
121 printG1Space("Eden Space:", edenRegionNum, | 122 printG1Space("Eden Space:", edenRegionNum, |
122 g1mm.edenUsed(), g1mm.edenCommitted()); | 123 g1mm.edenUsed(), g1mm.edenCommitted()); |