RFR: 8356025: Provide a PrintVMInfoAtExit diagnostic switch [v2]
Thomas Stuefe
stuefe at openjdk.org
Wed May 7 09:03:33 UTC 2025
> Provides a `PrintVMInfoAtExit` diagnostic switch that, if active, causes the JVM to print out the equivalent of `jcmd VM.info` before exiting.
>
> The `VM.info` output contains a large range of valuable information about the JVM and the process.
>
> The switch can be surprisingly useful, e.g. when analysing short-lived processes that are too quick to be analysed with jcmd, or analysing JVM child processes in a process tree, and so on. Going forward, it can also remove the need for some of the more specific PrintxxxAtExit flags.
>
> It can also make writing tests easier (want to make sure switch XX enables condition YY, and YY is printed as part of VM.info? Just start the VM with PrintVMInfoAtExit and parse the output )
Thomas Stuefe has updated the pull request incrementally with one additional commit since the last revision:
Update src/hotspot/share/runtime/globals.hpp
Co-authored-by: Joel Sikström <joel.sikstrom at oracle.com>
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/24980/files
- new: https://git.openjdk.org/jdk/pull/24980/files/88aacea1..4445265a
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=24980&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=24980&range=00-01
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/24980.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/24980/head:pull/24980
PR: https://git.openjdk.org/jdk/pull/24980
More information about the hotspot-runtime-dev
mailing list