From d085187c5e590112ff5d090833014e6ccef12f83 Mon Sep 17 00:00:00 2001 From: Robbin Ehn Date: Wed, 20 Mar 2024 17:57:10 +0100 Subject: [PATCH] add logging --- src/hotspot/os/posix/os_posix.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/hotspot/os/posix/os_posix.cpp b/src/hotspot/os/posix/os_posix.cpp index 39a6779b3fc04..8129713720d50 100644 --- a/src/hotspot/os/posix/os_posix.cpp +++ b/src/hotspot/os/posix/os_posix.cpp @@ -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) {