> This patch adds a new jcmd diagnostic command, `VM.show_settings`, to make 
> the existing -`XshowSettings` output available from a running VM. The command 
> accepts the same sections as`XshowSettings` (all, vm, properties, locale, 
> security, system, security:all, security:properties, security:providers, 
> security:tls). 
> 
> HotSpot registers the new diagnostic command, validates the requested 
> section, then calls into `sun.launcher.LauncherHelper` to reuse the existing 
> show settings formatting and return the result as bytes for the jcmd stream. 
> The VM settings path also passes hotspots `InitialHeapSize`, `MaxHeapSize`, 
> and Java thread stack size into the Java helper. A new jcmd test covers VM, 
> properties, security TLS, and invalid-input output.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Kieran Farrell has updated the pull request with a new target base due to a 
merge or a rebase. The pull request now contains 12 commits:

 - move to jdk.internal.launcher
 - make security properties current and add extra jcmd output
 - refactor
 - split to internal method
 - revert mistaken change
 - add comment and update print_properties to use CHECK
 - remove validation
 - extend test coverage and code clean up
 - updates
 - clean up and add test
 - ... and 2 more: https://git.openjdk.org/jdk/compare/3de6ff76...c14e18c7

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

Changes: https://git.openjdk.org/jdk/pull/31742/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31742&range=10
  Stats: 1173 lines in 8 files changed: 754 ins; 415 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/31742.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31742/head:pull/31742

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

Reply via email to