diff agent/src/share/classes/sun/jvm/hotspot/tools/HeapSummary.java @ 6725:da91efe96a93

6964458: Reimplement class meta-data storage to use native memory Summary: Remove PermGen, allocate meta-data in metaspace linked to class loaders, rewrite GC walking, rewrite and rename metadata to be C++ classes Reviewed-by: jmasa, stefank, never, coleenp, kvn, brutisso, mgerdin, dholmes, jrose, twisti, roland Contributed-by: jmasa <jon.masamitsu@oracle.com>, stefank <stefan.karlsson@oracle.com>, mgerdin <mikael.gerdin@oracle.com>, never <tom.rodriguez@oracle.com>
author coleenp
date Sat, 01 Sep 2012 13:25:18 -0400
parents 0b3d1ec6eaee
children 9a094d29af19
line wrap: on
line diff
--- a/agent/src/share/classes/sun/jvm/hotspot/tools/HeapSummary.java	Fri Aug 31 16:39:35 2012 -0700
+++ b/agent/src/share/classes/sun/jvm/hotspot/tools/HeapSummary.java	Sat Sep 01 13:25:18 2012 -0400
@@ -65,8 +65,8 @@
       printValMB("OldSize          = ", getFlagValue("OldSize", flagMap));
       printValue("NewRatio         = ", getFlagValue("NewRatio", flagMap));
       printValue("SurvivorRatio    = ", getFlagValue("SurvivorRatio", flagMap));
-      printValMB("PermSize         = ", getFlagValue("PermSize", flagMap));
-      printValMB("MaxPermSize      = ", getFlagValue("MaxPermSize", flagMap));
+      printValMB("MetaspaceSize    = ", getFlagValue("MetaspaceSize", flagMap));
+      printValMB("MaxMetaspaceSize = ", getFlagValue("MaxMetaspaceSize", flagMap));
       printValMB("G1HeapRegionSize = ", HeapRegion.grainBytes());
 
       System.out.println();
@@ -118,10 +118,6 @@
          } else {
              throw new RuntimeException("unknown SharedHeap type : " + heap.getClass());
          }
-         // Perm generation shared by the above
-         Generation permGen = sharedHeap.permGen();
-         System.out.println("Perm Generation:");
-         printGen(permGen);
       } else if (heap instanceof ParallelScavengeHeap) {
          ParallelScavengeHeap psh = (ParallelScavengeHeap) heap;
          PSYoungGen youngGen = psh.youngGen();
@@ -134,14 +130,6 @@
          printValMB("used     = ", oldGen.used());
          printValMB("free     = ", oldFree);
          System.out.println(alignment + (double)oldGen.used() * 100.0 / oldGen.capacity() + "% used");
-
-         PSPermGen permGen = psh.permGen();
-         long permFree = permGen.capacity() - permGen.used();
-         System.out.println("PS Perm Generation");
-         printValMB("capacity = ", permGen.capacity());
-         printValMB("used     = ", permGen.used());
-         printValMB("free     = ", permFree);
-         System.out.println(alignment + (double)permGen.used() * 100.0 / permGen.capacity() + "% used");
       } else {
          throw new RuntimeException("unknown CollectedHeap type : " + heap.getClass());
       }