diff src/share/vm/prims/forte.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 f95d63e2154a
children 1d1603768966
line wrap: on
line diff
--- a/src/share/vm/prims/forte.cpp	Thu Jan 27 16:11:27 2011 -0800
+++ b/src/share/vm/prims/forte.cpp	Tue Feb 01 11:23:19 2011 -0500
@@ -520,6 +520,7 @@
 //       method_id - jmethodID of the method being executed
 
 extern "C" {
+JNIEXPORT
 void AsyncGetCallTrace(ASGCT_CallTrace *trace, jint depth, void* ucontext) {
 
 // This is if'd out because we no longer use thread suspension.