--- a/src/hotspot/os/windows/os_windows.cpp Mon Aug 05 16:27:30 2019 -0700
+++ b/src/hotspot/os/windows/os_windows.cpp Fri Aug 02 10:10:42 2019 +0200
@@ -1365,11 +1365,14 @@
// in case of error it checks if .dll/.so was built for the
// same architecture as Hotspot is running on
void * os::dll_load(const char *name, char *ebuf, int ebuflen) {
+ log_info(os)("attempting shared library load of %s", name);
+
void * result = LoadLibrary(name);
if (result != NULL) {
Events::log(NULL, "Loaded shared library %s", name);
// Recalculate pdb search path if a DLL was loaded successfully.
SymbolEngine::recalc_search_path();
+ log_info(os)("shared library load of %s was successful", name);
return result;
}
DWORD errcode = GetLastError();
@@ -1378,6 +1381,7 @@
lasterror(ebuf, (size_t) ebuflen);
ebuf[ebuflen - 1] = '\0';
Events::log(NULL, "Loading shared library %s failed, error code %lu", name, errcode);
+ log_info(os)("shared library load of %s failed, error code %lu", name, errcode);
if (errcode == ERROR_MOD_NOT_FOUND) {
strncpy(ebuf, "Can't find dependent libraries", ebuflen - 1);