Lines Matching defs:signal

85 # include <signal.h>
1066 // initialize signal mask for this thread
1115 //Save caller's signal mask
1147 // initialize signal mask for this thread
1148 // and save the caller's signal mask
1170 // initialize signal mask for this thread
1171 // and save the caller's signal mask
1265 // that assumption is not accurate, but our alternate signal stack
1541 // 5/22/01: Right now alternate signal stacks do not handle
1543 // Until a fix is found for this, T2 will NOT imply alternate signal
1545 // If using T2 libthread threads, install an alternate signal stack.
1552 // signal stack. Since our stack banging code is generated and
1554 // using alternate signal stacks. The alternative is to interpose
1557 // We would prefer to use alternate signal stacks with T2
1560 // on installing alternate signal stacks
1563 // 05/09/03: removed alternate signal stack support for Solaris
1564 // The alternate signal stack mechanism is no longer needed to
1567 // Initially the alternate signal stack mechanism was removed because
1569 // signal stacks MUST have all threads bound to lwps. Applications
1593 // Restore caller's signal mask
1664 // VM receives an async signal or when VM causes a fatal error during
1835 // called from signal handler. Before adding something to os::shutdown(), make
1856 // called from signal handler. Before adding something to os::abort(), make
2388 assert(ourSigFlags!=NULL, "signal data structure not initialized");
2389 assert(sig > 0 && sig < Maxsignum, "vm signal out of expected range");
2394 assert(ourSigFlags!=NULL, "signal data structure not initialized");
2395 assert(sig > 0 && sig < Maxsignum, "vm signal out of expected range");
2451 // It is our signal handler
2601 // We do not need to reinstate the signal handler each time...
2613 void signal();
2630 void Semaphore::signal() {
2665 void* os::signal(int signal_number, void* handler) {
2687 // a counter for each possible signal value
2699 assert(Sigexit > 0, "signal memory not yet initialized");
2704 // Initialize signal structures
2707 assert(Maxsignum >0, "Unable to obtain max signal number");
2711 // pending_signals has one int per signal
2712 // The additional signal is for SIGEXIT - exit signal to signal_thread
3661 // a SIGWAITING signal which would enable the threads library to create a new lwp for the starving
3768 // SIGWAITING signal which will cause a new lwp to be created. So we count the
4345 // get current set of blocked signals and unblock resume signal
4349 sr_semaphore.signal();
4356 sr_semaphore.signal();
4471 // we send a signal to a thread we want to resume
4479 // mark as suspended and send signal
4490 // managed to send the signal and switch to SUSPEND_REQUEST, now wait for SUSPENDED
4500 // make sure that we consume the signal on the semaphore as well
4593 // The user-defined signal handler must pass unrecognized signals to this
4594 // routine, and if it returns true (non-zero), then the signal handler must
4600 // the user-defined signal handler to perform checks either before or after
4616 // Note that the VM will print warnings if it detects conflicting signal
4628 /* Do not delete - if guarantee is ever removed, a signal handler (even empty)
4631 does NOT participate in signal chaining due to requirement for
4637 vm_exit_during_initialization("Signal chaining detected for VM interrupt signal, try -XX:+UseAltSigs");
4646 // For signal-chaining
4655 // Retrieve the old signal handler from libjsig
4659 // Retrieve the preinstalled signal handler from jvm
4668 // Call the old signal handler
4675 // automaticlly block the signal
4693 // try to honor the signal mask
4704 // restore the signal mask
4707 // Tell jvm's signal handler the signal is taken care of.
4713 // signal-chaining
4733 assert(sig > 0 && sig <= Maxsignum, "vm signal out of expected range");
4756 vm_exit_during_initialization("Signal chaining not allowed for VM interrupt signal, try -XX:+UseAltSigs.");
4762 "%#lx for signal %d.", (long)oldhand, sig));
4771 // Handle SIGSEGV on alternate signal stack if
4791 assert(oldhand2 == oldhand, "no concurrent signal handler installation");
4903 // Print all the signal handler state
4914 // signal-chaining
4931 assert(UseSignalChaining, "should enable signal-chaining");
4934 // Tell libjsig jvm is setting signal handlers
4948 // Pre-1.4.1 Libjsig limited to signal chaining signals <= 32 so
4951 // Tell libjsig jvm has finished setting signal handlers
4962 // Tell libjsig jvm finishes setting signal handlers
4966 // We don't activate signal checker if libjsig is in place, we trust ourselves
4968 // Log that signal checking is off only if -verbose:jni is specified.
4972 tty->print_cr("Info: libjsig is activated, all active signal checking is disabled");
4978 tty->print_cr("Info: AllowUserSignalHandlers is activated, all active signal checking is disabled");
5002 // signal
6382 // -1 :=> either 0 or 1; must signal target thread
6405 // We intentional signal *after* dropping the lock
6607 // Unlike system(), this function can be called from signal handler. It
6616 // fork is async-safe, fork1 is not so can't use in signal handler
6659 // The child exited because of a signal
6660 // The best value to return is 0x80 + signal number,
6663 // process death by signal.