hotspot/src/os/linux/vm/os_linux.cpp
changeset 33594 8c87ef3e5497
parent 33593 60764a78fa5c
parent 33589 7cbd1b2c139b
child 33732 2a47b89db4ec
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Fri Oct 23 16:48:38 2015 -0400
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Fri Oct 23 23:06:53 2015 +0200
@@ -2794,7 +2794,7 @@
 
 
 int os::Linux::sched_getcpu_syscall(void) {
-  unsigned int cpu;
+  unsigned int cpu = 0;
   int retval = -1;
 
 #if defined(IA32)
@@ -4187,8 +4187,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) {
@@ -4393,7 +4393,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