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

David Holmes dholmes at openjdk.org
Tue Dec 2 09:39:20 UTC 2025


On Mon, 1 Dec 2025 20:24:06 GMT, Frederic Thevenet <fthevenet at openjdk.org> wrote:

>> 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

I think this seems reasonable.

Have you run all of the tests that use this flag to check that the extra output does not cause any problems (e.g. if jtreg elides sections of the log because it is too long now)?

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

Marked as reviewed by dholmes (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/28579#pullrequestreview-3529140282


More information about the hotspot-runtime-dev mailing list