comparison src/os/linux/vm/os_linux.cpp @ 23822:626f594dffa6

8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux. Reviewed-by: stuefe, coleenp, roland
author csahu
date Tue, 01 Mar 2016 12:50:37 +0530
parents 54203a323126
children f13e777eb255 44c8fe602a5e
comparison
equal deleted inserted replaced
23821:2f8db587e1fc 23822:626f594dffa6
2753 return end; 2753 return end;
2754 } 2754 }
2755 2755
2756 2756
2757 int os::Linux::sched_getcpu_syscall(void) { 2757 int os::Linux::sched_getcpu_syscall(void) {
2758 unsigned int cpu; 2758 unsigned int cpu = 0;
2759 int retval = -1; 2759 int retval = -1;
2760 2760
2761 #if defined(IA32) 2761 #if defined(IA32)
2762 # ifndef SYS_getcpu 2762 # ifndef SYS_getcpu
2763 # define SYS_getcpu 318 2763 # define SYS_getcpu 318
4261 if ((actp->sa_flags & SA_NODEFER) == 0) { 4261 if ((actp->sa_flags & SA_NODEFER) == 0) {
4262 // automaticlly block the signal 4262 // automaticlly block the signal
4263 sigaddset(&(actp->sa_mask), sig); 4263 sigaddset(&(actp->sa_mask), sig);
4264 } 4264 }
4265 4265
4266 sa_handler_t hand; 4266 sa_handler_t hand = NULL;
4267 sa_sigaction_t sa; 4267 sa_sigaction_t sa = NULL;
4268 bool siginfo_flag_set = (actp->sa_flags & SA_SIGINFO) != 0; 4268 bool siginfo_flag_set = (actp->sa_flags & SA_SIGINFO) != 0;
4269 // retrieve the chained handler 4269 // retrieve the chained handler
4270 if (siginfo_flag_set) { 4270 if (siginfo_flag_set) {
4271 sa = actp->sa_sigaction; 4271 sa = actp->sa_sigaction;
4272 } else { 4272 } else {
4467 #endif 4467 #endif
4468 #define SIGNIFICANT_SIGNAL_MASK (~0x04000000) 4468 #define SIGNIFICANT_SIGNAL_MASK (~0x04000000)
4469 4469
4470 static const char* get_signal_handler_name(address handler, 4470 static const char* get_signal_handler_name(address handler,
4471 char* buf, int buflen) { 4471 char* buf, int buflen) {
4472 int offset; 4472 int offset = 0;
4473 bool found = os::dll_address_to_library_name(handler, buf, buflen, &offset); 4473 bool found = os::dll_address_to_library_name(handler, buf, buflen, &offset);
4474 if (found) { 4474 if (found) {
4475 // skip directory names 4475 // skip directory names
4476 const char *p1, *p2; 4476 const char *p1, *p2;
4477 p1 = buf; 4477 p1 = buf;