In jcmd commands (Diagnostic Commands) which accept an output filename parameter, it would be useful if the commad recognised the %p pattern, and substituted the PID.
We have other components that behave in this way (e.g. -XX:OnError) and we have the code in Arguments::copy_expand_pid().
This should be applied to all current DiagnosticCommands that create an ouptut file, and should be the pattern for new commands.
We have other components that behave in this way (e.g. -XX:OnError) and we have the code in Arguments::copy_expand_pid().
This should be applied to all current DiagnosticCommands that create an ouptut file, and should be the pattern for new commands.
- relates to
-
JDK-8337667 sun/tools/jcmd/TestJcmdPIDSubstitution.java is failing on mac and windows
- Resolved
-
JDK-8337276 jcmd man page update for PID in output filenames
- Resolved
-
JDK-8204681 Option to include timestamp in hprof filename
- Open
- links to
-
Commit(master) openjdk/jdk/f5c9e8f1
-
Review(master) openjdk/jdk/20198