mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-24 05:14:52 +02:00
8144219: [posix] Remove redundant code around os::print_siginfo()
For posix platforms, consolidate os::print_siginfo() in os_posix.cpp and remove cds fault special handling Reviewed-by: dholmes, simonis
This commit is contained in:
parent
9c775566e5
commit
6996edcbb5
12 changed files with 84 additions and 93 deletions
|
@ -2237,25 +2237,6 @@ void os::get_summary_cpu_info(char* cpuinfo, size_t length) {
|
|||
#endif
|
||||
}
|
||||
|
||||
void os::print_siginfo(outputStream* st, void* siginfo) {
|
||||
const siginfo_t* si = (const siginfo_t*)siginfo;
|
||||
|
||||
os::Posix::print_siginfo_brief(st, si);
|
||||
#if INCLUDE_CDS
|
||||
if (si && (si->si_signo == SIGBUS || si->si_signo == SIGSEGV) &&
|
||||
UseSharedSpaces) {
|
||||
FileMapInfo* mapinfo = FileMapInfo::current_info();
|
||||
if (mapinfo->is_in_shared_space(si->si_addr)) {
|
||||
st->print("\n\nError accessing class data sharing archive." \
|
||||
" Mapped file inaccessible during execution, " \
|
||||
" possible disk/network problem.");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
st->cr();
|
||||
}
|
||||
|
||||
|
||||
static void print_signal_handler(outputStream* st, int sig,
|
||||
char* buf, size_t buflen);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue