4127 if (CheckJNICalls) {
4128 if (libjsig_is_loaded) {
4129 if (PrintJNIResolving) {
4130 tty->print_cr("Info: libjsig is activated, all active signal checking is disabled");
4131 }
4132 check_signals = false;
4133 }
4134 if (AllowUserSignalHandlers) {
4135 if (PrintJNIResolving) {
4136 tty->print_cr("Info: AllowUserSignalHandlers is activated, all active signal checking is disabled");
4137 }
4138 check_signals = false;
4139 }
4140 }
4141 }
4142
4143
4144 void report_error(const char* file_name, int line_no, const char* title,
4145 const char* format, ...);
4146
4147 const char * signames[] = {
4148 "SIG0",
4149 "SIGHUP", "SIGINT", "SIGQUIT", "SIGILL", "SIGTRAP",
4150 "SIGABRT", "SIGEMT", "SIGFPE", "SIGKILL", "SIGBUS",
4151 "SIGSEGV", "SIGSYS", "SIGPIPE", "SIGALRM", "SIGTERM",
4152 "SIGUSR1", "SIGUSR2", "SIGCLD", "SIGPWR", "SIGWINCH",
4153 "SIGURG", "SIGPOLL", "SIGSTOP", "SIGTSTP", "SIGCONT",
4154 "SIGTTIN", "SIGTTOU", "SIGVTALRM", "SIGPROF", "SIGXCPU",
4155 "SIGXFSZ", "SIGWAITING", "SIGLWP", "SIGFREEZE", "SIGTHAW",
4156 "SIGCANCEL", "SIGLOST"
4157 };
4158
4159 const char* os::exception_name(int exception_code, char* buf, size_t size) {
4160 if (0 < exception_code && exception_code <= SIGRTMAX) {
4161 // signal
4162 if (exception_code < sizeof(signames)/sizeof(const char*)) {
4163 jio_snprintf(buf, size, "%s", signames[exception_code]);
4164 } else {
4165 jio_snprintf(buf, size, "SIG%d", exception_code);
4166 }
4167 return buf;
4168 } else {
4169 return NULL;
4170 }
4171 }
4172
4173 // (Static) wrapper for getisax(2) call.
4174 os::Solaris::getisax_func_t os::Solaris::_getisax = 0;
4175
4176 // (Static) wrappers for the liblgrp API
4177 os::Solaris::lgrp_home_func_t os::Solaris::_lgrp_home;
4178 os::Solaris::lgrp_init_func_t os::Solaris::_lgrp_init;
4179 os::Solaris::lgrp_fini_func_t os::Solaris::_lgrp_fini;
4180 os::Solaris::lgrp_root_func_t os::Solaris::_lgrp_root;
4181 os::Solaris::lgrp_children_func_t os::Solaris::_lgrp_children;
4182 os::Solaris::lgrp_resources_func_t os::Solaris::_lgrp_resources;
4183 os::Solaris::lgrp_nlgrps_func_t os::Solaris::_lgrp_nlgrps;
4184 os::Solaris::lgrp_cookie_stale_func_t os::Solaris::_lgrp_cookie_stale;
4185 os::Solaris::lgrp_cookie_t os::Solaris::_lgrp_cookie = 0;
4186
4187 // (Static) wrapper for meminfo() call.
4188 os::Solaris::meminfo_func_t os::Solaris::_meminfo = 0;
4189
4190 static address resolve_symbol_lazy(const char* name) {
4191 address addr = (address) dlsym(RTLD_DEFAULT, name);
4192 if (addr == NULL) {
|
4127 if (CheckJNICalls) {
4128 if (libjsig_is_loaded) {
4129 if (PrintJNIResolving) {
4130 tty->print_cr("Info: libjsig is activated, all active signal checking is disabled");
4131 }
4132 check_signals = false;
4133 }
4134 if (AllowUserSignalHandlers) {
4135 if (PrintJNIResolving) {
4136 tty->print_cr("Info: AllowUserSignalHandlers is activated, all active signal checking is disabled");
4137 }
4138 check_signals = false;
4139 }
4140 }
4141 }
4142
4143
4144 void report_error(const char* file_name, int line_no, const char* title,
4145 const char* format, ...);
4146
4147 // (Static) wrapper for getisax(2) call.
4148 os::Solaris::getisax_func_t os::Solaris::_getisax = 0;
4149
4150 // (Static) wrappers for the liblgrp API
4151 os::Solaris::lgrp_home_func_t os::Solaris::_lgrp_home;
4152 os::Solaris::lgrp_init_func_t os::Solaris::_lgrp_init;
4153 os::Solaris::lgrp_fini_func_t os::Solaris::_lgrp_fini;
4154 os::Solaris::lgrp_root_func_t os::Solaris::_lgrp_root;
4155 os::Solaris::lgrp_children_func_t os::Solaris::_lgrp_children;
4156 os::Solaris::lgrp_resources_func_t os::Solaris::_lgrp_resources;
4157 os::Solaris::lgrp_nlgrps_func_t os::Solaris::_lgrp_nlgrps;
4158 os::Solaris::lgrp_cookie_stale_func_t os::Solaris::_lgrp_cookie_stale;
4159 os::Solaris::lgrp_cookie_t os::Solaris::_lgrp_cookie = 0;
4160
4161 // (Static) wrapper for meminfo() call.
4162 os::Solaris::meminfo_func_t os::Solaris::_meminfo = 0;
4163
4164 static address resolve_symbol_lazy(const char* name) {
4165 address addr = (address) dlsym(RTLD_DEFAULT, name);
4166 if (addr == NULL) {
|