mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-10 13:39:30 +00:00
6653883: jmap with no option should print mmap instead of heap information
Changed the default option of jmap to print mmap. Reviewed-by: jjh
This commit is contained in:
parent
2cb9d9610e
commit
99706867d4
@ -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" },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user