comparison src/os/posix/vm/os_posix.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 c636758ea616
children 8a9bb7821e28 6c9332549827
comparison
equal deleted inserted replaced
14285:20e2bd0e84bf 14286:c250880a6673
258 return getcwd(buf, buflen); 258 return getcwd(buf, buflen);
259 } 259 }
260 260
261 FILE* os::open(int fd, const char* mode) { 261 FILE* os::open(int fd, const char* mode) {
262 return ::fdopen(fd, mode); 262 return ::fdopen(fd, mode);
263 }
264
265 void* os::get_default_process_handle() {
266 return (void*)::dlopen(NULL, RTLD_LAZY);
267 } 263 }
268 264
269 // Builds a platform dependent Agent_OnLoad_<lib_name> function name 265 // Builds a platform dependent Agent_OnLoad_<lib_name> function name
270 // which is used to find statically linked in agents. 266 // which is used to find statically linked in agents.
271 // Parameters: 267 // Parameters: