diff src/os/solaris/vm/os_solaris.cpp @ 17684:d1621038becf

8031968: Mac OS X: VM starts the agent by calling both Agent_OnAttach and Agent_OnAttach_L functions if its agent library is dynamically linked. Summary: Make sure we only look for statically linked agents in the main process image Reviewed-by: dsamersoff, bpittore, dcubed
author sla
date Thu, 23 Jan 2014 09:06:21 +0100
parents 40136aa2cdb1
children 5944dba4badc bbfbe9b06038
line wrap: on
line diff
--- a/src/os/solaris/vm/os_solaris.cpp	Tue Feb 11 08:49:37 2014 -0800
+++ b/src/os/solaris/vm/os_solaris.cpp	Thu Jan 23 09:06:21 2014 +0100
@@ -2146,6 +2146,10 @@
   return dlsym(handle, name);
 }
 
+void* os::get_default_process_handle() {
+  return (void*)::dlopen(NULL, RTLD_LAZY);
+}
+
 int os::stat(const char *path, struct stat *sbuf) {
   char pathbuf[MAX_PATH];
   if (strlen(path) > MAX_PATH - 1) {