diff src/os/linux/vm/os_linux.cpp @ 14286:c250880a6673

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 e4f478e7781b
children 5944dba4badc bbfbe9b06038
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.cpp	Thu Jan 23 08:12:12 2014 +0100
+++ b/src/os/linux/vm/os_linux.cpp	Thu Jan 23 09:06:21 2014 +0100
@@ -2104,6 +2104,9 @@
   return res;
 }
 
+void* os::get_default_process_handle() {
+  return (void*)::dlopen(NULL, RTLD_LAZY);
+}
 
 static bool _print_ascii_file(const char* filename, outputStream* st) {
   int fd = ::open(filename, O_RDONLY);