hotspot/src/os/linux/vm/os_linux.cpp
changeset 33589 7cbd1b2c139b
parent 33148 68fa8b6c4340
child 33594 8c87ef3e5497
equal deleted inserted replaced
33580:c2d95df2c54e 33589:7cbd1b2c139b
  2792   return end;
  2792   return end;
  2793 }
  2793 }
  2794 
  2794 
  2795 
  2795 
  2796 int os::Linux::sched_getcpu_syscall(void) {
  2796 int os::Linux::sched_getcpu_syscall(void) {
  2797   unsigned int cpu;
  2797   unsigned int cpu = 0;
  2798   int retval = -1;
  2798   int retval = -1;
  2799 
  2799 
  2800 #if defined(IA32)
  2800 #if defined(IA32)
  2801   #ifndef SYS_getcpu
  2801   #ifndef SYS_getcpu
  2802     #define SYS_getcpu 318
  2802     #define SYS_getcpu 318
  4185     if ((actp->sa_flags & SA_NODEFER) == 0) {
  4185     if ((actp->sa_flags & SA_NODEFER) == 0) {
  4186       // automaticlly block the signal
  4186       // automaticlly block the signal
  4187       sigaddset(&(actp->sa_mask), sig);
  4187       sigaddset(&(actp->sa_mask), sig);
  4188     }
  4188     }
  4189 
  4189 
  4190     sa_handler_t hand;
  4190     sa_handler_t hand = NULL;
  4191     sa_sigaction_t sa;
  4191     sa_sigaction_t sa = NULL;
  4192     bool siginfo_flag_set = (actp->sa_flags & SA_SIGINFO) != 0;
  4192     bool siginfo_flag_set = (actp->sa_flags & SA_SIGINFO) != 0;
  4193     // retrieve the chained handler
  4193     // retrieve the chained handler
  4194     if (siginfo_flag_set) {
  4194     if (siginfo_flag_set) {
  4195       sa = actp->sa_sigaction;
  4195       sa = actp->sa_sigaction;
  4196     } else {
  4196     } else {
  4391 #endif
  4391 #endif
  4392 #define SIGNIFICANT_SIGNAL_MASK (~0x04000000)
  4392 #define SIGNIFICANT_SIGNAL_MASK (~0x04000000)
  4393 
  4393 
  4394 static const char* get_signal_handler_name(address handler,
  4394 static const char* get_signal_handler_name(address handler,
  4395                                            char* buf, int buflen) {
  4395                                            char* buf, int buflen) {
  4396   int offset;
  4396   int offset = 0;
  4397   bool found = os::dll_address_to_library_name(handler, buf, buflen, &offset);
  4397   bool found = os::dll_address_to_library_name(handler, buf, buflen, &offset);
  4398   if (found) {
  4398   if (found) {
  4399     // skip directory names
  4399     // skip directory names
  4400     const char *p1, *p2;
  4400     const char *p1, *p2;
  4401     p1 = buf;
  4401     p1 = buf;