Skip to content

Commit

Permalink
additional fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Mar 20, 2024
1 parent 3a82dd2 commit 1426f39
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/hotspot/os/posix/os_posix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,10 +711,12 @@ void* os::get_default_process_handle() {
}

void* os::dll_lookup(void* handle, const char* name) {
void* ret = dlsym(handle, name);
void* ret = ::dlsym(handle, name);
if (ret == nullptr) {
const char* tmp = dlerror();
log_debug(os)("Symbol %s not found in dll: %s", name, tmp);
const char* tmp = ::dlerror();
if (tmp != nullptr) {
log_debug(os)("Symbol %s not found in dll: %s", name, tmp);
}
}
return ret;
}
Expand Down

0 comments on commit 1426f39

Please sign in to comment.