RFR: 8364106: Include java.runtime.version in thread dump output

David Holmes dholmes at openjdk.org
Mon Jul 28 23:59:21 UTC 2025


Proposed output (similar to that produced for hs_err log):


Full thread dump Java HotSpot(TM) 64-Bit Server VM (26-internal-2025-07-28-0739549.daholme... mixed mode, sharing)
                 JRE version: Java(TM) SE Runtime Environment (26.0) (fastdebug build 26-internal-2025-07-28-0739549.daholme...)

Threads class SMR info:
... 

Testing:
 - manual thread dump production via ctrl-\
 -  tiers 1-3 (sanity)

Potentially the null checks are not needed in this case as we should not be able to generate a thread dump until after things are initialized, but it doesn't really hurt.

Thanks

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

Commit messages:
 - Fixed formatting
 - 8364106: Include java.runtime.version in thread dump output

Changes: https://git.openjdk.org/jdk/pull/26520/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26520&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8364106
  Stats: 15 lines in 1 file changed: 14 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/26520.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26520/head:pull/26520

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


More information about the hotspot-runtime-dev mailing list