RFR: 8338883: Add core dump info to -Xlog:os=info [v3]

Gerard Ziemski gziemski at openjdk.org
Mon Sep 9 19:46:25 UTC 2024


> We add a small feature, which adds core dump info, which till now was only printed as part of hs_err log file, directly to stdout, when desired using log mechanism, i.e. `-Xlog:os=info`
> 
> For example, if we see:
> 
> `core dump info: core.28283`
> 
> we know all is set up correctly and we can expect a core file if java process crashes. If we see:
> 
> `core dump info: Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again`
> 
> instead, however, we know that "ulimit -c unlimited" needs to be set.
> 
> Testing: 
> - passes `"MACH5 runtime/ErrorHandling/CreateCoredumpOnCrash.java"`
> - full MACH5 test in progress...

Gerard Ziemski has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 11 additional commits since the last revision:

 - white space
 - windows issue
 - use status better
 - use status
 - revert static method change
 - use parameter to only do a check
 - Merge remote-tracking branch 'upstream/master' into JDK-8338883
 - copyright year
 - refactor core dump check code and separate checking from creating core file
 - copyright year update
 - ... and 1 more: https://git.openjdk.org/jdk/compare/53f72d96...6f5125e3

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20734/files
  - new: https://git.openjdk.org/jdk/pull/20734/files/b72ae740..6f5125e3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20734&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20734&range=01-02

  Stats: 17605 lines in 610 files changed: 10954 ins; 3014 del; 3637 mod
  Patch: https://git.openjdk.org/jdk/pull/20734.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20734/head:pull/20734

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


More information about the hotspot-runtime-dev mailing list