RFR: 8368817: Convert JDK_Version::to_string to use stringStream instead of jio_snprintf-chain

Kim Barrett kbarrett at openjdk.org
Tue Sep 30 03:01:58 UTC 2025


Please review this change to JDK_Version::to_string to use stringStream to
accumulate the version string in the buffer, rather than using jio_snprintf to
write the various pieces.

Testing: mach5 tier1
Locally manually examined result of JDK_Version for builds configured with
different values for various version parameters.

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

Commit messages:
 - JDK_Version::to_string

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

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


More information about the hotspot-runtime-dev mailing list