< prev index next >

src/jdk.jcmd/share/classes/sun/tools/jmap/JMap.java

Print this page

        

@@ -174,11 +174,11 @@
     private static void histo(String pid, String options)
         throws AttachNotSupportedException, IOException,
                UnsupportedEncodingException {
         String liveopt = "-all";
         String filename = null;
-        String parallelthreadnum = null;
+        String parallel = null;
         String subopts[] = options.split(",");
         boolean set_all = false;
         boolean set_live = false;
         String cmdline = "";
 

@@ -195,13 +195,13 @@
                 filename = parseFileName(subopt);
                 if (filename == null) {
                     usage(1); // invalid options or no filename
                 }
                 cmdline = add_option(cmdline, filename);
-            } else if (subopt.startsWith("parallelThreadNum=")) {
-               parallelthreadnum = subopt.substring(19);
-               if (parallelthreadnum == null) {
+            } else if (subopt.startsWith("parallel=")) {
+               parallel = subopt.substring("parallel=".length());
+               if (parallel == null) {
                     usage(1);
                }
                // Add "parallelThreadsNum=<>" for later check
                cmdline = add_option(cmdline, subopt);
             } else {

@@ -309,14 +309,14 @@
         System.err.println("");
         System.err.println("    histo-options:");
         System.err.println("      live         count only live objects");
         System.err.println("      all          count all objects in the heap (default if one of \"live\" or \"all\" is not specified)");
         System.err.println("      file=<file>  dump data to <file>");
-        System.err.println("      parallelThreadNum=<number>  parallel threads number for heap iteration:");
-        System.err.println("                                  parallelThreadNum=0 default behavior, use predefined number of threads");
-        System.err.println("                                  parallelThreadNum=1 disable parallel heap iteration");
-        System.err.println("                                  parallelThreadNum=<N> use N threads for parallel heap iteration");
+        System.err.println("      parallel=<number>  parallel threads number for heap iteration:");
+        System.err.println("                                  parallel=0 default behavior, use predefined number of threads");
+        System.err.println("                                  parallel=1 disable parallel heap iteration");
+        System.err.println("                                  parallel=<N> use N threads for parallel heap iteration");
         System.err.println("");
         System.err.println("    Example: jmap -histo:live,file=/tmp/histo.data <pid>");
         System.exit(exit);
     }
 }
< prev index next >