< prev index next >
src/os/linux/vm/os_linux.cpp
Print this page
rev 9088 : 8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux.
Reviewed-by: stuefe, coleenp
*** 2792,2802 ****
return end;
}
int os::Linux::sched_getcpu_syscall(void) {
! unsigned int cpu;
int retval = -1;
#if defined(IA32)
#ifndef SYS_getcpu
#define SYS_getcpu 318
--- 2792,2802 ----
return end;
}
int os::Linux::sched_getcpu_syscall(void) {
! unsigned int cpu = 0;
int retval = -1;
#if defined(IA32)
#ifndef SYS_getcpu
#define SYS_getcpu 318
*** 4185,4196 ****
if ((actp->sa_flags & SA_NODEFER) == 0) {
// automaticlly block the signal
sigaddset(&(actp->sa_mask), sig);
}
! sa_handler_t hand;
! sa_sigaction_t sa;
bool siginfo_flag_set = (actp->sa_flags & SA_SIGINFO) != 0;
// retrieve the chained handler
if (siginfo_flag_set) {
sa = actp->sa_sigaction;
} else {
--- 4185,4196 ----
if ((actp->sa_flags & SA_NODEFER) == 0) {
// automaticlly block the signal
sigaddset(&(actp->sa_mask), sig);
}
! 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 {
*** 4391,4401 ****
#endif
#define SIGNIFICANT_SIGNAL_MASK (~0x04000000)
static const char* get_signal_handler_name(address handler,
char* buf, int buflen) {
! int offset;
bool found = os::dll_address_to_library_name(handler, buf, buflen, &offset);
if (found) {
// skip directory names
const char *p1, *p2;
p1 = buf;
--- 4391,4401 ----
#endif
#define SIGNIFICANT_SIGNAL_MASK (~0x04000000)
static const char* get_signal_handler_name(address handler,
char* buf, int buflen) {
! 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 >