RFR: JDK-8320890: [AIX] Find a better way to mimic dl handle equality [v5]

Thomas Stuefe stuefe at openjdk.org
Mon Dec 18 10:57:46 UTC 2023


On Mon, 18 Dec 2023 10:35:48 GMT, Joachim Kern <jkern at openjdk.org> wrote:

>> src/hotspot/os/aix/porting_aix.cpp line 990:
>> 
>>> 988:   if (env == nullptr) {
>>> 989:     // no LIBPATH, try with LD_LIBRARY_PATH
>>> 990:     env = getenv("LD_LIBRARY_PATH");
>> 
>> Is LD_LIBRARY_PATH a thing on AIX? I thought it is only used on non-AIX.
>
> Yes it is, It's the fallback if LIBPATH is not defined

In that case there may be errors in other places, since so far we assumed its either one or the other, but not both. Example:

https://github.com/openjdk/jdk/blob/a247d0c74bea50f11d24fb5f3576947c6901e567/src/java.base/unix/native/libjli/java_md.c#L43C1-L47

Maybe you need to take a look here, in case LD_LIBRARYPATH needs to be handled in addition to LIBPATH?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16920#discussion_r1429917901


More information about the hotspot-dev mailing list