Mercurial > hg > graal-jvmci-8
diff 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 |
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.cpp Thu Feb 18 16:15:28 2016 +0100 +++ b/src/os/linux/vm/os_linux.cpp Tue Mar 01 12:50:37 2016 +0530 @@ -2755,7 +2755,7 @@ int os::Linux::sched_getcpu_syscall(void) { - unsigned int cpu; + unsigned int cpu = 0; int retval = -1; #if defined(IA32) @@ -4263,8 +4263,8 @@ sigaddset(&(actp->sa_mask), sig); } - sa_handler_t hand; - sa_sigaction_t sa; + sa_handler_t hand = NULL; + sa_sigaction_t sa = NULL; bool siginfo_flag_set = (actp->sa_flags & SA_SIGINFO) != 0; // retrieve the chained handler if (siginfo_flag_set) { @@ -4469,7 +4469,7 @@ static const char* get_signal_handler_name(address handler, char* buf, int buflen) { - int offset; + int offset = 0; bool found = os::dll_address_to_library_name(handler, buf, buflen, &offset); if (found) { // skip directory names