RFR: JDK-8313764: Offer JVM HS functionality to shared lib load operations done by the JDK codebase

Matthias Baesken mbaesken at openjdk.org
Tue Aug 15 07:43:23 UTC 2023


On Mon, 14 Aug 2023 07:48:00 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> Currently there is a number of functionality that would be interesting to have for shared lib load operations in the JDK C code.
> Some examples :
> Events::log_dll_message for hs-err files reporting
> JFR event NativeLibraryLoad
> There is the need to update the shared lib Cache on AIX ( see LoadedLibraries::reload() , see also https://bugs.openjdk.org/browse/JDK-8314152 ),
> this is currently not fully in sync with libs loaded form jdk c-libs and sometimes reports outdated information
> 
> Offer an interface (e.g. jvm.cpp) to support this.

Hi Phil, yes there are of course more call sites of dlopen in the JDK C codebase.
I could cover them too, if this is wished.

> . but I'm still not sure I understand .. why is what you are doing only wanted for the AIX cases ?

The lib cache update ` LoadedLibraries::reload();`   is  AIX specific;  the UL and JFR events are cross platform.

( Btw. in our proprietary JVM we have this approach for many years )

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

PR Comment: https://git.openjdk.org/jdk/pull/15264#issuecomment-1678538226



More information about the security-dev mailing list