RFR: JDK-8288003: log events for os::dll_unload [v5]

David Holmes dholmes at openjdk.java.net
Mon Jun 13 12:00:08 UTC 2022


On Mon, 13 Jun 2022 08:26:51 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>> Currently we only log events for os::dll_load, but not for os::dll_unload, this patch adds it. On some platforms (Linux/Windows) we can use OS APIs (e.g. dlinfo on Linux) to log the path of the unloaded shared lib.
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Adjust dll_path

src/hotspot/os/linux/os_linux.cpp line 1792:

> 1790:   struct link_map *lmap;
> 1791:   const char* l_path = NULL;
> 1792:   if (lib != NULL) {

I still say this can just be an assert - it is checked in the callers.

-------------

PR: https://git.openjdk.org/jdk/pull/9101


More information about the hotspot-runtime-dev mailing list