RFR: 8338883: Add core dump info to -Xlog:os=info
Gerard Ziemski
gziemski at openjdk.org
Tue Aug 27 21:00:13 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...
-------------
Commit messages:
- copyright year update
- add core dump info to log:info:os
Changes: https://git.openjdk.org/jdk/pull/20734/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20734&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8338883
Stats: 13 lines in 2 files changed: 8 ins; 1 del; 4 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