On Mon, 18 Mar 2024 17:43:45 GMT, Suchismith Roy <s...@openjdk.org> wrote:
>> Allow support for both .a and .so files in AIX. >> If .so file is not found, allow fallback to .a extension. >> JBS Issue: [JDK-8319516](https://bugs.openjdk.org/browse/JDK-8319516) > > Suchismith Roy has updated the pull request incrementally with one additional > commit since the last revision: > > trraling spaces JDK-8313616 added the support of loading library members on AIX in os::dll_load in JDK 22. On AIX, is a shared object a member object loaded from `libname.a(libname.so)`? If so, changing `mapLibraryName` implementation seems to be a proper fix. If you want to load a specific version, it should call `loadLibrary("libclang.a(libclang.so.16)")` instead. As @jaikiran suggests, `loadLibraryOnlyIfPresent()` should return false for AIX as the file does not exist. The library implementation may need to adjust as the current implementation uses a file path name. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17945#issuecomment-2013669909