comparison src/os/linux/vm/os_linux.cpp @ 1490:f03d0a26bf83

6888954: argument formatting for assert() and friends Reviewed-by: kvn, twisti, apetrusenko, never, dcubed
author jcoomes
date Thu, 22 Apr 2010 13:23:15 -0700
parents a2ea687fdc7c
children 3fca8e9cd36a
comparison
equal deleted inserted replaced
1489:cff162798819 1490:f03d0a26bf83
3493 // save the old handler in jvm 3493 // save the old handler in jvm
3494 save_preinstalled_handler(sig, oldAct); 3494 save_preinstalled_handler(sig, oldAct);
3495 // libjsig also interposes the sigaction() call below and saves the 3495 // libjsig also interposes the sigaction() call below and saves the
3496 // old sigaction on it own. 3496 // old sigaction on it own.
3497 } else { 3497 } else {
3498 fatal2("Encountered unexpected pre-existing sigaction handler %#lx for signal %d.", (long)oldhand, sig); 3498 fatal(err_msg("Encountered unexpected pre-existing sigaction handler "
3499 "%#lx for signal %d.", (long)oldhand, sig));
3499 } 3500 }
3500 } 3501 }
3501 3502
3502 struct sigaction sigAct; 3503 struct sigaction sigAct;
3503 sigfillset(&(sigAct.sa_mask)); 3504 sigfillset(&(sigAct.sa_mask));
3815 3816
3816 ThreadCritical::initialize(); 3817 ThreadCritical::initialize();
3817 3818
3818 Linux::set_page_size(sysconf(_SC_PAGESIZE)); 3819 Linux::set_page_size(sysconf(_SC_PAGESIZE));
3819 if (Linux::page_size() == -1) { 3820 if (Linux::page_size() == -1) {
3820 fatal1("os_linux.cpp: os::init: sysconf failed (%s)", strerror(errno)); 3821 fatal(err_msg("os_linux.cpp: os::init: sysconf failed (%s)",
3822 strerror(errno)));
3821 } 3823 }
3822 init_page_sizes((size_t) Linux::page_size()); 3824 init_page_sizes((size_t) Linux::page_size());
3823 3825
3824 Linux::initialize_system_info(); 3826 Linux::initialize_system_info();
3825 3827