mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
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
Make sure we only look for statically linked agents in the main process image Reviewed-by: dsamersoff, bpittore, dcubed
This commit is contained in:
parent
869722e816
commit
6f46c5c2f0
4 changed files with 18 additions and 4 deletions
|
@ -2146,6 +2146,10 @@ void* os::dll_lookup(void* handle, const char* name) {
|
|||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue