RFR: 8372802: PrintFlagsFinal should also print locked flags [v2]

Frederic Thevenet fthevenet at openjdk.org
Mon Dec 1 20:24:06 UTC 2025


> This change aims to provide a way to print all flags including "locked" ones (e.g. Diagnostic and Experimental) without having to explicitly set `+UnlockExperimentalVMOptions` or `+UnlockDiagnosticVMOptions` 
> 
> This applies to the following VM options: `PrintFlagsFinal` , `PrintFlagsRanges`, `PrintFlagsInitial`, `PrintFlagsWithComments`, `-XprintFlags`, as well as the `PrintVMFlagsDCmd` diagnostic command (when set to show all flags).
> 
> Places that print out only flags that have been changed (i.e. that skip flags with default values), like when during the generation of hs_err reports, are not affected by this.

Frederic Thevenet has updated the pull request incrementally with one additional commit since the last revision:

  Removed unnecessary jdk.internal.misc module declaration

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/28579/files
  - new: https://git.openjdk.org/jdk/pull/28579/files/96ce8390..6cdac8e1

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=28579&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=28579&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/28579.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28579/head:pull/28579

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


More information about the hotspot-runtime-dev mailing list