Mercurial > hg > truffle
comparison agent/src/share/classes/sun/jvm/hotspot/tools/HeapSummary.java @ 18041:52b4284cb496
Merge with jdk8u20-b26
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Wed, 15 Oct 2014 16:02:50 +0200 |
parents | 89152779163c 58fc1b1523dc |
children |
comparison
equal
deleted
inserted
replaced
17606:45d7b2c7029d | 18041:52b4284cb496 |
---|---|
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()); |