hotspot/src/share/vm/prims/forte.cpp
changeset 10565 dc90c239f4ec
parent 10508 233d2e7c462d
child 13728 882756847a04
--- a/hotspot/src/share/vm/prims/forte.cpp	Tue Sep 20 23:50:16 2011 -0700
+++ b/hotspot/src/share/vm/prims/forte.cpp	Sun Sep 25 16:03:29 2011 -0700
@@ -621,6 +621,11 @@
 // Method to let libcollector know about a dynamically loaded function.
 // Because it is weakly bound, the calls become NOP's when the library
 // isn't present.
+#ifdef __APPLE__
+// XXXDARWIN: Link errors occur even when __attribute__((weak_import))
+// is added
+#define collector_func_load(x0,x1,x2,x3,x4,x5,x6) (0)
+#else
 void    collector_func_load(char* name,
                             void* null_argument_1,
                             void* null_argument_2,
@@ -631,6 +636,7 @@
 #pragma weak collector_func_load
 #define collector_func_load(x0,x1,x2,x3,x4,x5,x6) \
         ( collector_func_load ? collector_func_load(x0,x1,x2,x3,x4,x5,x6),0 : 0 )
+#endif // __APPLE__
 #endif // !_WINDOWS
 
 } // end extern "C"