RFR: JDK-8313616: support loading library members on AIX in os::dll_load
Martin Doerr
mdoerr at openjdk.org
Wed Aug 9 14:33:58 UTC 2023
On Wed, 9 Aug 2023 14:03:48 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
>> src/hotspot/os/aix/os_aix.cpp line 1125:
>>
>>> 1123: // RTLD_LAZY has currently the same behavior as RTLD_NOW
>>> 1124: // The dl is loaded immediately with all its dependants.
>>> 1125: int dflags = RTLD_LAZY;
>>
>> Looks ok. Maybe it would be safer to use `RTLD_NOW` in case the implementation changes at some point of time.
>
> Hi martin, I spoke to our local AIX experts and they said better to use RTLD_LAZY because this is used more across platforms. Additionally it is very unlikely that in the near future, on AIX, RTLD_LAZY and RTLD_NOW would differ.
Ok.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15204#discussion_r1288558153
More information about the hotspot-runtime-dev
mailing list