RFR: JDK-8320005 : Allow loading of shared objects with .a extension on AIX [v11]
Joachim Kern
jkern at openjdk.org
Mon Jan 29 09:51:40 UTC 2024
On Sat, 27 Jan 2024 17:38:59 GMT, Suchismith Roy <sroy at openjdk.org> wrote:
>> J2SE agent does not start and throws error when it tries to find the shared library ibm_16_am.
>> After searching for ibm_16_am.so ,the jvm agent throws and error as dll_load fails.It fails to identify the shared library ibm_16_am.a shared archive file on AIX.
>> Hence we are providing a function which will additionally search for .a file on AIX ,when the search for .so file fails.
>
> Suchismith Roy has updated the pull request incrementally with one additional commit since the last revision:
>
> update comment
src/hotspot/os/aix/os_aix.cpp line 1166:
> 1164: Search order:
> 1165: libfilename-> load "libfilename.so" first,then load libfilename.a,on failure.
> 1166: In,OpenJ9,the libary with .so extension is loaded first and then .a extension,on failure.
Hi Suchi, I'm puzzled. Your comment implies for me, that load library gets a 'base' filename without 'lib' prefix and without extension (e.g. 'name'). Then the j9 code creates the filename 'libname.so' first and on failure 'libname.a' second. What about given libname.so explicitly (e.g. libname.so)? Does j9 really use 'libname.a' as a failure fallback in this case?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16604#discussion_r1469331769
More information about the serviceability-dev
mailing list