From 8164cfbc0373e57619e18324931f0946b51ae18f Mon Sep 17 00:00:00 2001 From: Deepa Kumari Date: Wed, 1 Feb 2023 07:04:26 +0000 Subject: [PATCH] 8300696: [AIX] AttachReturnError fails Reviewed-by: tsteele, dholmes --- src/hotspot/os/posix/os_posix.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hotspot/os/posix/os_posix.cpp b/src/hotspot/os/posix/os_posix.cpp index 7a85a2ccb86..1e0ac60e063 100644 --- a/src/hotspot/os/posix/os_posix.cpp +++ b/src/hotspot/os/posix/os_posix.cpp @@ -48,6 +48,9 @@ #include "utilities/globalDefinitions.hpp" #include "utilities/macros.hpp" #include "utilities/vmError.hpp" +#ifdef AIX +#include "loadlib_aix.hpp" +#endif #ifdef LINUX #include "os_linux.hpp" #endif @@ -747,6 +750,8 @@ void os::dll_unload(void *lib) { log_info(os)("Attempt to unload shared library \"%s\" [" INTPTR_FORMAT "] failed, %s", l_path, p2i(lib), error_report); } + // Update the dll cache + AIX_ONLY(LoadedLibraries::reload()); LINUX_ONLY(os::free(l_pathdup)); }