equal
deleted
inserted
replaced
165 extern "C" JNIEXPORT int |
165 extern "C" JNIEXPORT int |
166 JVM_handle_aix_signal(int sig, siginfo_t* info, void* ucVoid, int abort_if_unrecognized) { |
166 JVM_handle_aix_signal(int sig, siginfo_t* info, void* ucVoid, int abort_if_unrecognized) { |
167 |
167 |
168 ucontext_t* uc = (ucontext_t*) ucVoid; |
168 ucontext_t* uc = (ucontext_t*) ucVoid; |
169 |
169 |
170 Thread* t = ThreadLocalStorage::get_thread_slow(); // slow & steady |
170 Thread* t = Thread::current_or_null_safe(); |
171 |
171 |
172 SignalHandlerMark shm(t); |
172 SignalHandlerMark shm(t); |
173 |
173 |
174 // Note: it's not uncommon that JNI code uses signal/sigset to install |
174 // Note: it's not uncommon that JNI code uses signal/sigset to install |
175 // then restore certain signal handler (e.g. to temporarily block SIGPIPE, |
175 // then restore certain signal handler (e.g. to temporarily block SIGPIPE, |