Lines Matching defs:signal

95 # include <signal.h>
160 /* do not use any signal number less than SIGSEGV, see 4355769 */
522 // signal support
606 //Save caller's signal mask before setting VM signal mask
729 // Now alternate signal stack is gone, it's harder to use 2. For instance,
866 // initialize signal mask for this thread
1066 // initialize signal mask for this thread
1067 // and save the caller's signal mask
1086 // Restore caller's signal mask
1180 // SuSE 7.2, Debian) can not handle alternate signal stack correctly
1183 // FIXME: alt signal stack is gone, maybe we can relax this constraint?
1554 // called from signal handler. Before adding something to os::shutdown(), make
1576 // called from signal handler. Before adding something to os::abort(), make
2445 void signal();
2462 void Semaphore::signal() {
2497 void* os::signal(int signal_number, void* handler) {
2521 // Will be modified when max signal is changed to be dynamic
2526 // a counter for each possible signal value
2534 // Initialize signal structures
2537 // Initialize signal semaphore
3519 // generates a SIGUSRx signal. Note that SIGUSR1 can interfere with
3710 // the low-level signal-based suspend/resume support is a remnant from the
3720 // - sends a signal to the target thread
3722 // - target thread signal handler (SR_handler) sets suspend state
3726 // - sends signal to end the sigsuspend loop in the SR_handler
3748 // interface point of view, but sigwait() prevents the signal hander
3750 // its signal handlers run and prevents sigwait()'s use with the
3751 // mutex granting granting signal.
3773 // get current set of blocked signals and unblock resume signal
3777 sr_semaphore.signal();
3784 sr_semaphore.signal();
3811 /* Get signal number to use for suspend/resume */
3825 /* Set up signal handler for suspend/resume */
3830 // 4528190 - We also need to block pthread restart signal (32 on all
3832 // this signal for all threads to work properly. So we don't have
3833 // to use hard-coded signal number when setting up the mask.
3840 // Save signal flag
3857 // we send a signal to a thread we want to resume
3867 // mark as suspended and send signal
3878 // managed to send the signal and switch to SUSPEND_REQUEST, now wait for SUSPENDED
3888 // make sure that we consume the signal on the semaphore as well
3972 // signal handling (except suspend/resume)
3975 // The user-defined signal handler must pass unrecognized signals to this
3976 // routine, and if it returns true (non-zero), then the signal handler must
3982 // the user-defined signal handler to perform checks either before or after
3996 // Note that the VM will print warnings if it detects conflicting signal
4013 // For signal-chaining
4024 // Retrieve the old signal handler from libjsig
4028 // Retrieve the preinstalled signal handler from jvm
4037 // Call the old signal handler
4044 // automaticlly block the signal
4062 // try to honor the signal mask
4073 // restore the signal mask
4076 // Tell jvm's signal handler the signal is taken care of.
4082 // signal-chaining
4100 assert(sig > 0 && sig < MAXSIGNUM, "vm signal out of expected range");
4109 assert(sig > 0 && sig < MAXSIGNUM, "vm signal out of expected range");
4114 assert(sig > 0 && sig < MAXSIGNUM, "vm signal out of expected range");
4139 "%#lx for signal %d.", (long)oldhand, sig));
4153 assert(sig > 0 && sig < MAXSIGNUM, "vm signal out of expected range");
4162 assert(oldhand2 == oldhand, "no concurrent signal handler installation");
4165 // install signal handlers for signals that HotSpot needs to
4172 // signal-chaining
4184 assert(UseSignalChaining, "should enable signal-chaining");
4187 // Tell libjsig jvm is setting signal handlers
4199 // Tell libjsig jvm finishes setting signal handlers
4203 // We don't activate signal checker if libjsig is in place, we trust ourselves
4205 // Log that signal checking is off only if -verbose:jni is specified.
4209 tty->print_cr("Info: libjsig is activated, all active signal checking is disabled");
4215 tty->print_cr("Info: AllowUserSignalHandlers is activated, all active signal checking is disabled");
4240 // to indicate, that some special sort of signal
4303 // It is our signal handler
4421 // Dump all the signal
4433 // signal
4728 // Suspends the target using the signal mechanism and then grabs the PC before
5306 // desirable signal-after-unlock optimization that avoids futile context switching.
5457 // -1 :=> either 0 or 1; must signal target thread
5487 // Note that we signal() _after dropping the lock for "immortal" Events.
5703 // Unlike system(), this function can be called from signal handler. It
5756 // The child exited because of a signal
5757 // The best value to return is 0x80 + signal number,
5760 // process death by signal.
5857 // Wait for the mem_notify device to signal us..