RFR: JDK-8313616: support loading library members on AIX in os::dll_load

Matthias Baesken mbaesken at openjdk.org
Wed Aug 9 08:26:32 UTC 2023


AIX dlopen allows loading members of a lib; the syntax for members is libname(member-object) . However this needs an additional flag RTLD_MEMBER passed to dlopen.
Example from our OpenJDK codebase : dlopen("/usr/lib/libperfstat.a(shr_64.o)", RTLD_MEMBER | RTLD_NOW);

However, currently we do not support this in os::dll_load, so member loading would fail because of the missing RTLD_MEMBER flag.
See https://www.ibm.com/docs/en/aix/7.1?topic=d-dlopen-subroutine part about RTLD_MEMBER

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

Commit messages:
 - JDK-8313616

Changes: https://git.openjdk.org/jdk/pull/15204/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15204&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8313616
  Stats: 24 lines in 3 files changed: 13 ins; 2 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/15204.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15204/head:pull/15204

PR: https://git.openjdk.org/jdk/pull/15204


More information about the hotspot-runtime-dev mailing list