2234 strncpy(cpuinfo, ZERO_LIBARCH, length); |
2234 strncpy(cpuinfo, ZERO_LIBARCH, length); |
2235 #else |
2235 #else |
2236 strncpy(cpuinfo, "unknown", length); |
2236 strncpy(cpuinfo, "unknown", length); |
2237 #endif |
2237 #endif |
2238 } |
2238 } |
2239 |
|
2240 void os::print_siginfo(outputStream* st, void* siginfo) { |
|
2241 const siginfo_t* si = (const siginfo_t*)siginfo; |
|
2242 |
|
2243 os::Posix::print_siginfo_brief(st, si); |
|
2244 #if INCLUDE_CDS |
|
2245 if (si && (si->si_signo == SIGBUS || si->si_signo == SIGSEGV) && |
|
2246 UseSharedSpaces) { |
|
2247 FileMapInfo* mapinfo = FileMapInfo::current_info(); |
|
2248 if (mapinfo->is_in_shared_space(si->si_addr)) { |
|
2249 st->print("\n\nError accessing class data sharing archive." \ |
|
2250 " Mapped file inaccessible during execution, " \ |
|
2251 " possible disk/network problem."); |
|
2252 } |
|
2253 } |
|
2254 #endif |
|
2255 st->cr(); |
|
2256 } |
|
2257 |
|
2258 |
2239 |
2259 static void print_signal_handler(outputStream* st, int sig, |
2240 static void print_signal_handler(outputStream* st, int sig, |
2260 char* buf, size_t buflen); |
2241 char* buf, size_t buflen); |
2261 |
2242 |
2262 void os::print_signal_handlers(outputStream* st, char* buf, size_t buflen) { |
2243 void os::print_signal_handlers(outputStream* st, char* buf, size_t buflen) { |