@@ -226,11 +226,11 @@ private static void dump(String pid, String options)
226
226
} else if (subopt .equals ("format=b" )) {
227
227
// ignore format (not needed at this time)
228
228
} 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 ) {
231
231
System .err .println ("Fail: no number provided in option: '" + subopt + "'" );
232
232
usage (1 );
233
- }
233
+ }
234
234
} else {
235
235
System .err .println ("Fail: invalid option: '" + subopt + "'" );
236
236
usage (1 );
@@ -316,13 +316,13 @@ private static void usage(int exit) {
316
316
System .err .println (" Example: jmap -dump:live,format=b,file=heap.bin <pid>" );
317
317
System .err .println ("" );
318
318
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. " );
326
326
System .err .println ("" );
327
327
System .err .println (" Example: jmap -histo:live,file=/tmp/histo.data <pid>" );
328
328
System .exit (exit );
1 commit comments
openjdk-notifier[bot] commentedon May 7, 2021
Review
Issues