< prev index next >
src/os/linux/vm/os_linux.cpp
Print this page
rev 9081 : imported patch more.patch
@@ -2793,11 +2793,11 @@
return end;
}
int os::Linux::sched_getcpu_syscall(void) {
- unsigned int cpu;
+ unsigned int cpu = 0;
int retval = -1;
#if defined(IA32)
#ifndef SYS_getcpu
#define SYS_getcpu 318
@@ -4186,12 +4186,12 @@
if ((actp->sa_flags & SA_NODEFER) == 0) {
// automaticlly block the signal
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) {
sa = actp->sa_sigaction;
} else {
@@ -4392,11 +4392,11 @@
#endif
#define SIGNIFICANT_SIGNAL_MASK (~0x04000000)
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
const char *p1, *p2;
p1 = buf;
< prev index next >