Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Mar 20, 2024
1 parent eebcc21 commit d085187
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/hotspot/os/posix/os_posix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,12 @@ void* os::get_default_process_handle() {
}

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

void os::dll_unload(void *lib) {
Expand Down

0 comments on commit d085187

Please sign in to comment.