RFR: 8271003: hs_err improvement: handle CLASSPATH env setting longer than O_BUFLEN

Calvin Cheung ccheung at openjdk.java.net
Fri Jul 30 19:41:00 UTC 2021


Please review this small enhancement for addressing the problem of the CLASSPATH env variable setting being truncated in a hs err log.

For printing a char string, it doesn't need to go through `do_vsnprintf()` which does the truncation based on the input buffer length. The change is local to the code path pertaining to hs err log.

Testing:

- [x] tiers 1, 2 (including the new test)

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

Commit messages:
 - fix whitespace error
 - 8271003: hs_err improvement: handle CLASSPATH env setting longer than O_BUFLEN

Changes: https://git.openjdk.java.net/jdk/pull/4947/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4947&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8271003
  Stats: 144 lines in 3 files changed: 143 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4947.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4947/head:pull/4947

PR: https://git.openjdk.java.net/jdk/pull/4947


More information about the hotspot-runtime-dev mailing list