Skip to content

Commit cceb0d8

Browse files
author
David Holmes
committed
8318126: Refresh manpages
Reviewed-by: alanb, mli, iris
1 parent 2f4d601 commit cceb0d8

File tree

4 files changed

+51
-88
lines changed

4 files changed

+51
-88
lines changed

src/java.base/share/man/java.1

Lines changed: 36 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -530,26 +530,27 @@ The value \[dq]disabled\[dq] disables finalization, so that no
530530
finalizers are invoked.
531531
.TP
532532
\f[V]--module-path\f[R] \f[I]modulepath\f[R]... or \f[V]-p\f[R] \f[I]modulepath\f[R]
533-
Specifies where to find application modules with a list of path elements.
534-
The elements of a module path can be a file path to a module or a directory
535-
containing modules. Each module is either a modular JAR or an
536-
exploded-module directory.
533+
Specifies where to find application modules with a list of path
534+
elements.
535+
The elements of a module path can be a file path to a module or a
536+
directory containing modules.
537+
Each module is either a modular JAR or an exploded-module directory.
537538
.RS
538539
.PP
539-
On Windows, semicolons (\f[V];\f[R]) separate path elements in this list;
540-
on other platforms it is a colon (\f[V]:\f[R]).
540+
On Windows, semicolons (\f[V];\f[R]) separate path elements in this
541+
list; on other platforms it is a colon (\f[V]:\f[R]).
541542
.RE
542543
.TP
543544
\f[V]--upgrade-module-path\f[R] \f[I]modulepath\f[R]...
544-
Specifies where to find module replacements of upgradeable modules in the
545-
runtime image with a list of path elements.
546-
The elements of a module path can be a file path to a module or a directory
547-
containing modules. Each module is either a modular JAR or an
548-
exploded-module directory.
545+
Specifies where to find module replacements of upgradeable modules in
546+
the runtime image with a list of path elements.
547+
The elements of a module path can be a file path to a module or a
548+
directory containing modules.
549+
Each module is either a modular JAR or an exploded-module directory.
549550
.RS
550551
.PP
551-
On Windows, semicolons (\f[V];\f[R]) separate path elements in this list;
552-
on other platforms it is a colon (\f[V]:\f[R]).
552+
On Windows, semicolons (\f[V];\f[R]) separate path elements in this
553+
list; on other platforms it is a colon (\f[V]:\f[R]).
553554
.RE
554555
.TP
555556
\f[V]--add-modules\f[R] \f[I]module\f[R][\f[V],\f[R]\f[I]module\f[R]...]
@@ -1304,6 +1305,7 @@ By default this option is disabled.
13041305
.TP
13051306
\f[V]-XX:FlightRecorderOptions=\f[R]\f[I]parameter\f[R]\f[V]=\f[R]\f[I]value\f[R] (or) \f[V]-XX:FlightRecorderOptions:\f[R]\f[I]parameter\f[R]\f[V]=\f[R]\f[I]value\f[R]
13061307
Sets the parameters that control the behavior of JFR.
1308+
Multiple parameters can be specified by separating them with a comma.
13071309
.RS
13081310
.PP
13091311
The following list contains the available JFR
@@ -1369,9 +1371,6 @@ By default, the local buffer size is set to 8 kilobytes, with a minimum
13691371
value of 4 kilobytes.
13701372
Overriding this parameter could reduce performance and is not
13711373
recommended.
1372-
.PP
1373-
You can specify values for multiple parameters by separating them with a
1374-
comma.
13751374
.RE
13761375
.TP
13771376
\f[V]-XX:LargePageSizeInBytes=\f[R]\f[I]size\f[R]
@@ -1658,6 +1657,9 @@ written when the recording is stopped, for example:
16581657
\f[V]/home/user/recordings/recording.jfr\f[R]
16591658
.IP \[bu] 2
16601659
\f[V]c:\[rs]recordings\[rs]recording.jfr\f[R]
1660+
.PP
1661+
If %p and/or %t is specified in the filename, it expands to the
1662+
JVM\[aq]s PID and the current timestamp, respectively.
16611663
.RE
16621664
.TP
16631665
\f[V]name=\f[R]\f[I]identifier\f[R]
@@ -1812,19 +1814,6 @@ See \f[B]Enable Logging with the JVM Unified Logging Framework\f[R] for
18121814
a description of using Unified Logging.
18131815
.RE
18141816
.TP
1815-
\f[V]-XX:+UseHugeTLBFS\f[R]
1816-
\f[B]Linux only:\f[R] This option is the equivalent of specifying
1817-
\f[V]-XX:+UseLargePages\f[R].
1818-
This option is disabled by default.
1819-
This option pre-allocates all large pages up-front, when memory is
1820-
reserved; consequently the JVM can\[aq]t dynamically grow or shrink
1821-
large pages memory areas; see \f[V]-XX:UseTransparentHugePages\f[R] if
1822-
you want this behavior.
1823-
.RS
1824-
.PP
1825-
See \f[B]Large Pages\f[R].
1826-
.RE
1827-
.TP
18281817
\f[V]-XX:+UseLargePages\f[R]
18291818
Enables the use of large page memory.
18301819
By default, this option is disabled and large page memory isn\[aq]t
@@ -2172,37 +2161,16 @@ unlocks diagnostic JVM options.
21722161
Sets the list of methods (separated by commas) to which compilation
21732162
should be restricted.
21742163
Only the specified methods are compiled.
2175-
Specify each method with the full class name (including the packages and
2176-
subpackages).
2177-
For example, to compile only the \f[V]length()\f[R] method of the
2178-
\f[V]String\f[R] class and the \f[V]size()\f[R] method of the
2179-
\f[V]List\f[R] class, use the following:
2180-
.RS
21812164
.RS
21822165
.PP
2183-
\f[V]-XX:CompileOnly=java/lang/String.length,java/util/List.size\f[R]
2184-
.RE
2185-
.PP
2186-
Note that the full class name is specified, including all packages and
2187-
subpackages separated by a slash (\f[V]/\f[R]).
2188-
For easier cut and paste operations, it\[aq]s also possible to use the
2189-
method name format produced by the \f[V]-XX:+PrintCompilation\f[R] and
2190-
\f[V]-XX:+LogCompilation\f[R] options:
2191-
.RS
2192-
.PP
2193-
\f[V]-XX:CompileOnly=java.lang.String::length,java.util.List::size\f[R]
2194-
.RE
2195-
.PP
2196-
Although wildcards aren\[aq]t supported, you can specify only the class
2197-
or package name to compile all methods in that class or package, as well
2198-
as specify just the method to compile methods with this name in any
2199-
class:
2166+
\f[V]-XX:CompileOnly=method1,method2,...,methodN\f[R] is an alias for:
22002167
.IP
22012168
.nf
22022169
\f[CB]
2203-
-XX:CompileOnly=java/lang/String
2204-
-XX:CompileOnly=java/lang
2205-
-XX:CompileOnly=.length
2170+
-XX:CompileCommand=compileonly,method1
2171+
-XX:CompileCommand=compileonly,method2
2172+
\&...
2173+
-XX:CompileCommand=compileonly,methodN
22062174
\f[R]
22072175
.fi
22082176
.RE
@@ -3655,14 +3623,6 @@ This is generally the best choice for small and simple applications that
36553623
don\[aq]t require any special functionality from garbage collection.
36563624
By default, this option is disabled and the default collector is used.
36573625
.TP
3658-
\f[V]-XX:+UseSHM\f[R]
3659-
\f[B]Linux only:\f[R] Enables the JVM to use shared memory to set up
3660-
large pages.
3661-
.RS
3662-
.PP
3663-
See \f[B]Large Pages\f[R] for setting up large pages.
3664-
.RE
3665-
.TP
36663626
\f[V]-XX:+UseStringDeduplication\f[R]
36673627
Enables string deduplication.
36683628
By default, this option is disabled.
@@ -3815,6 +3775,19 @@ Controlled \f[I]relaxed strong encapsulation\f[R], as defined in
38153775
This option was deprecated in JDK 16 by \f[B]JEP 396\f[R]
38163776
[https://openjdk.org/jeps/396] and made obsolete in JDK 17 by \f[B]JEP
38173777
403\f[R] [https://openjdk.org/jeps/403].
3778+
.TP
3779+
\f[V]-XX:+UseHugeTLBFS\f[R]
3780+
\f[B]Linux only:\f[R] This option is the equivalent of specifying
3781+
\f[V]-XX:+UseLargePages\f[R].
3782+
This option is disabled by default.
3783+
This option pre-allocates all large pages up-front, when memory is
3784+
reserved; consequently the JVM can\[aq]t dynamically grow or shrink
3785+
large pages memory areas; see \f[V]-XX:UseTransparentHugePages\f[R] if
3786+
you want this behavior.
3787+
.TP
3788+
\f[V]-XX:+UseSHM\f[R]
3789+
\f[B]Linux only:\f[R] Enables the JVM to use shared memory to set up
3790+
large pages.
38183791
.SH REMOVED JAVA OPTIONS
38193792
.PP
38203793
No documented java options have been removed in JDK 22.
@@ -4915,20 +4888,6 @@ login as \f[V]root\f[R] and run:
49154888
It is always recommended to check the value of \f[V]nr_hugepages\f[R]
49164889
after the request to make sure the kernel was able to allocate the
49174890
requested number of large pages.
4918-
.PP
4919-
When using the option \f[V]-XX:+UseSHM\f[R] to enable large pages you
4920-
also need to make sure the \f[V]SHMMAX\f[R] parameter is configured to
4921-
allow large enough shared memory segments to be allocated.
4922-
To allow a maximum shared segment of 8 GB, login as \f[V]root\f[R] and
4923-
run:
4924-
.RS
4925-
.PP
4926-
\f[V]# echo 8589934592 > /proc/sys/kernel/shmmax\f[R]
4927-
.RE
4928-
.PP
4929-
In some environments this is not needed since the default value is large
4930-
enough, but it is important to make sure the value is large enough to
4931-
fit the amount of memory intended to be backed by large pages.
49324891
.RS
49334892
.PP
49344893
\f[B]Note:\f[R] The values contained in \f[V]/proc\f[R] and

src/jdk.jcmd/share/man/jcmd.1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@ If no filename is given, a filename is generated from the PID and the
453453
current date.
454454
The filename may also be a directory in which case, the filename is
455455
generated from the PID and the current date in the specified directory.
456+
If %p and/or %t is specified in the filename, it expands to the
457+
JVM\[aq]s PID and the current timestamp, respectively.
456458
(STRING, no default value)
457459
.IP \[bu] 2
458460
\f[V]maxage\f[R]: (Optional) Length of time for dumping the flight
@@ -521,6 +523,8 @@ current date and is placed in the directory where the process was
521523
started.
522524
The filename may also be a directory in which case, the filename is
523525
generated from the PID and the current date in the specified directory.
526+
If %p and/or %t is specified in the filename, it expands to the
527+
JVM\[aq]s PID and the current timestamp, respectively.
524528
(STRING, no default value)
525529
.IP \[bu] 2
526530
\f[V]maxage\f[R]: (Optional) Maximum time to keep the recorded data on
@@ -612,6 +616,8 @@ If no parameters are entered, then no recording is stopped.
612616
.IP \[bu] 2
613617
\f[V]filename\f[R]: (Optional) Name of the file to which the recording
614618
is written when the recording is stopped.
619+
If %p and/or %t is specified in the filename, it expands to the
620+
JVM\[aq]s PID and the current timestamp, respectively.
615621
If no path is provided, the data from the recording is discarded.
616622
(STRING, no default value)
617623
.IP \[bu] 2

src/jdk.jdeps/share/man/jdeps.1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,6 @@ This option filters the list of classes to be analyzed.
244244
It can be used together with \f[V]-p\f[R] and \f[V]-e\f[R], which apply
245245
the pattern to the dependencies.
246246
.TP
247-
\f[V]-P\f[R] or \f[V]-profile\f[R]
248-
Shows the profile containing a package.
249-
This option is deprecated and may be removed in a future release.
250-
.TP
251247
\f[V]-R\f[R] or \f[V]--recursive\f[R]
252248
Recursively traverses all run-time dependences.
253249
The \f[V]-R\f[R] option implies \f[V]-filter:none\f[R].

src/jdk.jfr/share/man/jfr.1

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Use \f[V]jfr --help view\f[R] to see a list of available views.
221221
<\f[I]file\f[R]>
222222
Location of the recording file (.jfr)
223223
.PP
224-
The parameter can be an event type name.
224+
The <\f[I]view\f[R]> parameter can be an event type name.
225225
Use the \f[V]jfr view types <file>\f[R] to see a list.
226226
To display all views, use \f[V]jfr view all-views <file>\f[R].
227227
To display all events, use \f[V]jfr view all-events <file>\f[R].
@@ -258,8 +258,9 @@ To see available options, use \f[V]jfr help configure\f[R]
258258
.TP
259259
\f[I]event-setting=value\f[R]
260260
The event setting value to modify.
261-
Use the form: <\f[I]event-name>#=<value\f[R]> To add a new event
262-
setting, prefix the event name with \[aq]+\[aq].
261+
Use the form:
262+
<\f[I]event-name\f[R]>#<\f[I]setting-name\f[R]>=<\f[I]value\f[R]> To add
263+
a new event setting, prefix the event name with \[aq]+\[aq].
263264
.PP
264265
The whitespace delimiter can be omitted for timespan values, i.e.
265266
20ms.
@@ -316,7 +317,7 @@ The syntax is:
316317
[--exclude-events <\f[I]filter\f[R]>] [--include-categories
317318
<\f[I]filter\f[R]>] [--exclude-categories <\f[I]filter\f[R]>]
318319
[--include-threads <\f[I]filter\f[R]>] [--exclude-threads
319-
<\f[I]filter\f[R]>] <\f[I]input-file\f[R]> []
320+
<\f[I]filter\f[R]>] <\f[I]input-file\f[R]> [<\f[I]output-file\f[R]>]
320321
.TP
321322
\f[V]--include-events\f[R] <\f[I]filter\f[R]>
322323
Select events matching an event name.
@@ -335,8 +336,9 @@ Select events matching a thread name.
335336
.TP
336337
\f[V]--exclude-threads\f[R] <\f[I]filter\f[R]>
337338
Exclude events matching a thread name.
338-
.PP
339-
<\f[I]input-file\f[R]> :The input file to read events from.
339+
.TP
340+
<\f[I]input-file\f[R]>
341+
The input file to read events from.
340342
.TP
341343
<\f[I]output-file\f[R]>
342344
The output file to write filter events to.
@@ -346,7 +348,7 @@ input file, but with \[dq]-scrubbed\[dq] appended to the filename.
346348
The filter is a comma-separated list of names, simple and/or qualified,
347349
and/or quoted glob patterns.
348350
If multiple filters are used, they are applied in the specified order.
349-
.SS jfr \f[V]assemble\f[R] subcommand
351+
.SS \f[V]jfr assemble\f[R] subcommand
350352
.PP
351353
Use jfr \f[V]assemble\f[R] to assemble chunk files into a recording
352354
file.

0 commit comments

Comments
 (0)