Skip to content

Commit 3a474d9

Browse files
Lin ZangSerguei Spitsyn
Lin Zang
authored and
Serguei Spitsyn
committedMay 7, 2021
8265612: revise the help info for jmap histo command
Reviewed-by: cjplummer, sspitsyn
1 parent c97f56c commit 3a474d9

File tree

1 file changed

+10
-10
lines changed
  • src/jdk.jcmd/share/classes/sun/tools/jmap

1 file changed

+10
-10
lines changed
 

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

+10-10
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,11 @@ private static void dump(String pid, String options)
226226
} else if (subopt.equals("format=b")) {
227227
// ignore format (not needed at this time)
228228
} else if (subopt.startsWith("gz=")) {
229-
compress_level = subopt.substring("gz=".length());
230-
if (compress_level.length() == 0) {
229+
compress_level = subopt.substring("gz=".length());
230+
if (compress_level.length() == 0) {
231231
System.err.println("Fail: no number provided in option: '" + subopt + "'");
232232
usage(1);
233-
}
233+
}
234234
} else {
235235
System.err.println("Fail: invalid option: '" + subopt + "'");
236236
usage(1);
@@ -316,13 +316,13 @@ private static void usage(int exit) {
316316
System.err.println(" Example: jmap -dump:live,format=b,file=heap.bin <pid>");
317317
System.err.println("");
318318
System.err.println(" histo-options:");
319-
System.err.println(" live count only live objects (takes precedence if both \"live\" and \"all\" are specified)");
320-
System.err.println(" all count all objects in the heap (default if one of \"live\" or \"all\" is not specified)");
321-
System.err.println(" file=<file> dump data to <file>");
322-
System.err.println(" parallel=<number> parallel threads number for heap iteration:");
323-
System.err.println(" parallel=0 default behavior, use predefined number of threads");
324-
System.err.println(" parallel=1 disable parallel heap iteration");
325-
System.err.println(" parallel=<N> use N threads for parallel heap iteration");
319+
System.err.println(" live count only live objects (takes precedence if both \"live\" and \"all\" are specified)");
320+
System.err.println(" all count all objects in the heap (default if one of \"live\" or \"all\" is not specified)");
321+
System.err.println(" file=<file> dump data to <file>");
322+
System.err.println(" parallel=<number> Number of parallel threads to use for heap inspection:");
323+
System.err.println(" 0 (the default) means let the VM determine the number of threads to use");
324+
System.err.println(" 1 means use one thread (disable parallelism).");
325+
System.err.println(" For any other value the VM will try to use the specified number of threads, but might use fewer.");
326326
System.err.println("");
327327
System.err.println(" Example: jmap -histo:live,file=/tmp/histo.data <pid>");
328328
System.exit(exit);

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on May 7, 2021

@openjdk-notifier[bot]
Please sign in to comment.