comparison src/os/solaris/vm/os_solaris.cpp @ 2191:d70fe6ab4436

6588413: Use -fvisibility=hidden for gcc compiles Summary: Add option for gcc 4 and above, define JNIEXPORT and JNIIMPORT to visibility=default, add for jio_snprintf and others since -fvisibility=hidden overrides --version-script definitions. Reviewed-by: kamg, never
author coleenp
date Tue, 01 Feb 2011 11:23:19 -0500
parents 34d64ad817f4
children 850b2295a494 da091bb67459
comparison
equal deleted inserted replaced
2177:3582bf76420e 2191:d70fe6ab4436
4219 // the sa_flags field passed to sigaction() includes SA_SIGINFO and SA_RESTART. 4219 // the sa_flags field passed to sigaction() includes SA_SIGINFO and SA_RESTART.
4220 // 4220 //
4221 // Note that the VM will print warnings if it detects conflicting signal 4221 // Note that the VM will print warnings if it detects conflicting signal
4222 // handlers, unless invoked with the option "-XX:+AllowUserSignalHandlers". 4222 // handlers, unless invoked with the option "-XX:+AllowUserSignalHandlers".
4223 // 4223 //
4224 extern "C" int JVM_handle_solaris_signal(int signo, siginfo_t* siginfo, void* ucontext, int abort_if_unrecognized); 4224 extern "C" JNIEXPORT int
4225 JVM_handle_solaris_signal(int signo, siginfo_t* siginfo, void* ucontext,
4226 int abort_if_unrecognized);
4225 4227
4226 4228
4227 void signalHandler(int sig, siginfo_t* info, void* ucVoid) { 4229 void signalHandler(int sig, siginfo_t* info, void* ucVoid) {
4228 JVM_handle_solaris_signal(sig, info, ucVoid, true); 4230 JVM_handle_solaris_signal(sig, info, ucVoid, true);
4229 } 4231 }