Mercurial > hg > graal-jvmci-8
comparison src/os/solaris/vm/os_solaris.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 | 40136aa2cdb1 |
children | 5944dba4badc bbfbe9b06038 |
comparison
equal
deleted
inserted
replaced
14285:20e2bd0e84bf | 14286:c250880a6673 |
---|---|
2142 return NULL; | 2142 return NULL; |
2143 } | 2143 } |
2144 | 2144 |
2145 void* os::dll_lookup(void* handle, const char* name) { | 2145 void* os::dll_lookup(void* handle, const char* name) { |
2146 return dlsym(handle, name); | 2146 return dlsym(handle, name); |
2147 } | |
2148 | |
2149 void* os::get_default_process_handle() { | |
2150 return (void*)::dlopen(NULL, RTLD_LAZY); | |
2147 } | 2151 } |
2148 | 2152 |
2149 int os::stat(const char *path, struct stat *sbuf) { | 2153 int os::stat(const char *path, struct stat *sbuf) { |
2150 char pathbuf[MAX_PATH]; | 2154 char pathbuf[MAX_PATH]; |
2151 if (strlen(path) > MAX_PATH - 1) { | 2155 if (strlen(path) > MAX_PATH - 1) { |