mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8026324: hs_err improvement: Add summary section to hs_err file
8026333: hs_err improvement: Print GC Strategy 8026336: hs_err improvement: Print compilation mode, server, client or tiered Added command line, summary cpu and os information to summary section. Moved time of crash and duration in summary section. Add GC strategy and compiler setting (tiered) to enhanced version string in error report. Moved the stack trace sooner in hs_err file. Reviewed-by: dholmes, ctornqvi, ddmitriev
This commit is contained in:
parent
d7f565d9eb
commit
24c0f4e471
12 changed files with 478 additions and 152 deletions
|
@ -1550,6 +1550,13 @@ void os::print_dll_info(outputStream *st) {
|
|||
LoadedLibraries::print(st);
|
||||
}
|
||||
|
||||
void os::get_summary_os_info(char* buf, size_t buflen) {
|
||||
// There might be something more readable than uname results for AIX.
|
||||
struct utsname name;
|
||||
uname(&name);
|
||||
snprintf(buf, buflen, "%s %s", name.release, name.version);
|
||||
}
|
||||
|
||||
void os::print_os_info(outputStream* st) {
|
||||
st->print("OS:");
|
||||
|
||||
|
@ -1654,6 +1661,17 @@ void os::print_memory_info(outputStream* st) {
|
|||
}
|
||||
}
|
||||
|
||||
// Get a string for the cpuinfo that is a summary of the cpu type
|
||||
void os::get_summary_cpu_info(char* buf, size_t buflen) {
|
||||
// This looks good
|
||||
os::Aix::cpuinfo_t ci;
|
||||
if (os::Aix::get_cpuinfo(&ci)) {
|
||||
strncpy(buf, ci.version, buflen);
|
||||
} else {
|
||||
strncpy(buf, "AIX", buflen);
|
||||
}
|
||||
}
|
||||
|
||||
void os::pd_print_cpu_info(outputStream* st, char* buf, size_t buflen) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue