hotspot/src/os/linux/vm/os_linux.cpp
changeset 33589 7cbd1b2c139b
parent 33148 68fa8b6c4340
child 33594 8c87ef3e5497
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Mon Oct 19 15:03:58 2015 +0200
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Thu Oct 22 13:07:10 2015 -0400
@@ -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