The goal of this PR is to add a means of exposing security properties at 
runtime to aid the debugging security related issues/misconfigurations etc. 
Currently, only initial security properties set at start up can be exposed via 
the `InitialSecurityProperty` JFR event. 

This patch introduces a new jcmd diagnostic command `VM.properties`, which 
enables developers to print either the current system properties or security 
properties of a running Java process via command-line arguments (-system or 
-security). To avoid clutter within the jcmd command list, the old 
`VM.system_properties` command is hidden, but not removed so will not break 
existing usages. The implementation of each is shared to reduce duplication.

-------------

Commit messages:
 - static helper method for both jcmd calls
 - missing )
 - working with single arg
 - updates
 - update args
 - two args -not yet tested
 - initial patch

Changes: https://git.openjdk.org/jdk/pull/29124/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29124&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8364182
  Stats: 304 lines in 18 files changed: 186 ins; 77 del; 41 mod
  Patch: https://git.openjdk.org/jdk/pull/29124.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29124/head:pull/29124

PR: https://git.openjdk.org/jdk/pull/29124

Reply via email to