comparison src/os/solaris/vm/os_solaris.cpp @ 8124:5fc51c1ecdeb

Merge.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Tue, 05 Mar 2013 23:44:54 +0100
parents 3ac7d10a6572 5cd2fac2ae70
children b8f261ba79c6
comparison
equal deleted inserted replaced
7943:a413bcd552a4 8124:5fc51c1ecdeb
1863 ::exit(1); 1863 ::exit(1);
1864 } 1864 }
1865 1865
1866 // Die immediately, no exit hook, no abort hook, no cleanup. 1866 // Die immediately, no exit hook, no abort hook, no cleanup.
1867 void os::die() { 1867 void os::die() {
1868 _exit(-1); 1868 ::abort(); // dump core (for debugging)
1869 } 1869 }
1870 1870
1871 // unused 1871 // unused
1872 void os::set_error_file(const char *logfile) {} 1872 void os::set_error_file(const char *logfile) {}
1873 1873
4315 JVM_handle_solaris_signal(int signo, siginfo_t* siginfo, void* ucontext, 4315 JVM_handle_solaris_signal(int signo, siginfo_t* siginfo, void* ucontext,
4316 int abort_if_unrecognized); 4316 int abort_if_unrecognized);
4317 4317
4318 4318
4319 void signalHandler(int sig, siginfo_t* info, void* ucVoid) { 4319 void signalHandler(int sig, siginfo_t* info, void* ucVoid) {
4320 int orig_errno = errno; // Preserve errno value over signal handler.
4320 JVM_handle_solaris_signal(sig, info, ucVoid, true); 4321 JVM_handle_solaris_signal(sig, info, ucVoid, true);
4322 errno = orig_errno;
4321 } 4323 }
4322 4324
4323 /* Do not delete - if guarantee is ever removed, a signal handler (even empty) 4325 /* Do not delete - if guarantee is ever removed, a signal handler (even empty)
4324 is needed to provoke threads blocked on IO to return an EINTR 4326 is needed to provoke threads blocked on IO to return an EINTR
4325 Note: this explicitly does NOT call JVM_handle_solaris_signal and 4327 Note: this explicitly does NOT call JVM_handle_solaris_signal and