diff options
author | swamyv <none@none> | 2008-08-22 10:37:03 -0700 |
---|---|---|
committer | swamyv <none@none> | 2008-08-22 10:37:03 -0700 |
commit | d3afad6b050a63cddc69e0bce48ed9815d51b6d1 (patch) | |
tree | d9c869ef6120404742e06ea6ddd00e017773bd60 | |
parent | 8ec4839195b3539d4af665be0c87a9733949148f (diff) |
6653883: jmap with no option should print mmap instead of heap information.
Summary: Changed the default option of jmap to print mmap.
Reviewed-by: jjh
-rw-r--r-- | src/share/classes/sun/tools/jmap/JMap.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/share/classes/sun/tools/jmap/JMap.java b/src/share/classes/sun/tools/jmap/JMap.java index b770c4cd8..39100523c 100644 --- a/src/share/classes/sun/tools/jmap/JMap.java +++ b/src/share/classes/sun/tools/jmap/JMap.java @@ -56,7 +56,7 @@ public class JMap { private static String FORCE_SA_OPTION = "-F"; // Default option (if nothing provided) - private static String DEFAULT_OPTION = "-heap"; + private static String DEFAULT_OPTION = "-pmap"; public static void main(String[] args) throws Exception { if (args.length == 0) { @@ -147,6 +147,7 @@ public class JMap { // Invoke SA tool with the given arguments private static void runTool(String option, String args[]) throws Exception { String[][] tools = { + { "-pmap", "sun.jvm.hotspot.tools.PMap" }, { "-heap", "sun.jvm.hotspot.tools.HeapSummary" }, { "-heap:format=b", "sun.jvm.hotspot.tools.HeapDumper" }, { "-histo", "sun.jvm.hotspot.tools.ObjectHistogram" }, |