Skip to content

Commit b79ca5f

Browse files
committed
8359248: JFR: Help text for-XX:StartFlightRecording:report-on-exit should explain option can be repeated
Reviewed-by: mgronlun Backport-of: fedd0a0
1 parent 5bcea92 commit b79ca5f

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/java.base/share/man/java.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,9 +1449,10 @@ These `java` options control the runtime behavior of the Java HotSpot VM.
14491449

14501450
`report-on-exit=`*identifier*
14511451
: Specifies the name of the view to display when the Java Virtual Machine
1452-
(JVM) shuts down. This option is not available if the disk option is set
1453-
to false. For a list of available views, see `jfr help view`. By default,
1454-
no report is generated.
1452+
(JVM) shuts down. To specify more than one view, use the report-on-exit
1453+
parameter repeatedly. This option is not available if the disk option
1454+
is set to false. For a list of available views, see `jfr help view`.
1455+
By default, no report is generated.
14551456

14561457
`settings=`*path*
14571458
: Specifies the path and name of the event settings file (of type JFC).

src/jdk.jfr/share/classes/jdk/jfr/internal/dcmd/DCmdStart.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,11 @@ private static String reportOnExit() {
502502
"""
503503
504504
report-on-exit Specifies the name of the view to display when the Java Virtual
505-
Machine (JVM) shuts down. This option is not available if the
506-
disk option is set to false. For a list of available views,
507-
see 'jfr help view'. By default, no report is generated.
505+
Machine (JVM) shuts down. To specify more than one view, use
506+
the `report-on-exit` parameter repeatedly, for each view. This
507+
option is not available if the disk option is set to false.
508+
For a list of available views, see `jfr help view`. By default,
509+
no report is generated.
508510
""";
509511
}
510512

0 commit comments

Comments
 (0)