Lines Matching defs:signal

93 # include <signal.h>
186 /* do not use any signal number less than SIGSEGV, see 4355769 */
647 // signal support
731 //Save caller's signal mask before setting VM signal mask
855 // Now alternate signal stack is gone, it's harder to use 2. For instance,
1030 // initialize signal mask for this thread
1257 // initialize signal mask for this thread
1258 // and save the caller's signal mask
1277 // Restore caller's signal mask
1372 // SuSE 7.2, Debian) can not handle alternate signal stack correctly
1375 // FIXME: alt signal stack is gone, maybe we can relax this constraint?
1763 // called from signal handler. Before adding something to os::shutdown(), make
1785 // called from signal handler. Before adding something to os::abort(), make
2636 void* os::signal(int signal_number, void* handler) {
2660 // Will be modified when max signal is changed to be dynamic
2665 // a counter for each possible signal value
2687 void signal();
2704 void Semaphore::signal() {
2783 // Initialize signal structures
2786 // Initialize signal semaphore
3598 // generates a SIGUSRx signal. Note that SIGUSR1 can interfere with
3862 // the low-level signal-based suspend/resume support is a remnant from the
3872 // - sends a signal to the target thread
3874 // - target thread signal handler (SR_handler) sets suspend state
3878 // - sends signal to end the sigsuspend loop in the SR_handler
3900 // interface point of view, but sigwait() prevents the signal hander
3902 // its signal handlers run and prevents sigwait()'s use with the
3903 // mutex granting granting signal.
3925 // get current set of blocked signals and unblock resume signal
3929 sr_semaphore.signal();
3936 sr_semaphore.signal();
3965 /* Get signal number to use for suspend/resume */
3979 /* Set up signal handler for suspend/resume */
3984 // 4528190 - We also need to block pthread restart signal (32 on all
3986 // this signal for all threads to work properly. So we don't have
3987 // to use hard-coded signal number when setting up the mask.
3994 // Save signal flag
4011 // we send a signal to a thread we want to resume
4021 // mark as suspended and send signal
4032 // managed to send the signal and switch to SUSPEND_REQUEST, now wait for SUSPENDED
4042 // make sure that we consume the signal on the semaphore as well
4126 // signal handling (except suspend/resume)
4129 // The user-defined signal handler must pass unrecognized signals to this
4130 // routine, and if it returns true (non-zero), then the signal handler must
4136 // the user-defined signal handler to perform checks either before or after
4150 // Note that the VM will print warnings if it detects conflicting signal
4167 // For signal-chaining
4178 // Retrieve the old signal handler from libjsig
4182 // Retrieve the preinstalled signal handler from jvm
4191 // Call the old signal handler
4198 // automaticlly block the signal
4216 // try to honor the signal mask
4227 // restore the signal mask
4230 // Tell jvm's signal handler the signal is taken care of.
4236 // signal-chaining
4254 assert(sig > 0 && sig < MAXSIGNUM, "vm signal out of expected range");
4263 assert(sig > 0 && sig < MAXSIGNUM, "vm signal out of expected range");
4268 assert(sig > 0 && sig < MAXSIGNUM, "vm signal out of expected range");
4293 "%#lx for signal %d.", (long)oldhand, sig));
4309 // if the signal handler declares it will handle it on alternate stack.
4320 assert(sig > 0 && sig < MAXSIGNUM, "vm signal out of expected range");
4329 assert(oldhand2 == oldhand, "no concurrent signal handler installation");
4332 // install signal handlers for signals that HotSpot needs to
4339 // signal-chaining
4351 assert(UseSignalChaining, "should enable signal-chaining");
4354 // Tell libjsig jvm is setting signal handlers
4368 // signal handler that's placed on our process by CrashReporter. This disables
4374 // Additionally, gdb installs both standard BSD signal handlers, and mach exception
4376 // exception handling, while leaving the standard BSD signal handlers functional.
4384 assert(kr == KERN_SUCCESS, "could not set mach task signal handler");
4388 // Tell libjsig jvm finishes setting signal handlers
4392 // We don't activate signal checker if libjsig is in place, we trust ourselves
4396 tty->print_cr("Info: libjsig is activated, all active signal checking is disabled");
4400 tty->print_cr("Info: AllowUserSignalHandlers is activated, all active signal checking is disabled");
4426 // to indicate, that some special sort of signal
4489 // It is our signal handler
4607 // Dump all the signal
4619 // signal
4937 // Suspends the target using the signal mechanism and then grabs the PC before
5567 // desirable signal-after-unlock optimization that avoids futile context switching.
5718 // -1 :=> either 0 or 1; must signal target thread
5748 // Note that we signal() _after dropping the lock for "immortal" Events.
5962 // Unlike system(), this function can be called from signal handler. It
6013 // The child exited because of a signal
6014 // The best value to return is 0x80 + signal number,
6017 // process death by signal.