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

Phil Race prr at openjdk.org
Mon Aug 14 20:42:07 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.

I don't see why we need this .. 
The desktop module has a LOT of calls to dlopen() .. I wasn't sure why you were only interested in two of them.
I suspect because there's #ifdef AIX blocks in both of these files that do AIX-specific things for the dlopen .. but I'm still not sure I understand .. why is what you are doing only wanted for the AIX cases ? 

And I'd prefer that if anything is done that whatever you need to do be entirely within that #ifdef AIX block and so not affect anything else.

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

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


More information about the build-dev mailing list