[jdk8u-dev] RFR: 8269668: [aarch64] java.library.path not including /usr/lib64
Severin Gehwolf
sgehwolf at openjdk.org
Wed Nov 12 09:09:38 UTC 2025
On Tue, 11 Nov 2025 22:40:57 GMT, Andrew John Hughes <andrew at openjdk.org> wrote:
> The AArch64 `DEFAULT_LIBPATH` on OpenJDK 11 & 17 was adjusted back in July 2021 to include `/usr/lib64` and `/lib64`, as it is a 64-bit architecture where these library directories may be used. 8u was not included in this backporting at the time, leading to inconsistent library loading between AArch64 on OpenJDK 8 and later JDK versions.
>
> I don't see any strong reason to retain this inconsistency. Using the conservative version backported to 11u, libraries in `/lib` and `/usr/lib`will still take priority, so the only effect of this change is in allowing the JDK to find libraries on AArch64 systems where libraries are installed in `/lib64` and `/usr/lib64`, where this would currently fail.
>
> The content of the change itself applies as is to 8u. The patch did not apply due to differing context and I took this opportunity to also fix the indentation in that section (done as part of the more comprehensive change [JDK-8057109](https://bugs.openjdk.org/browse/JDK-8057109) in OpenJDK 9 and later) rather than breaking the indentation for the new lines.
OK.
-------------
Marked as reviewed by sgehwolf (Reviewer).
PR Review: https://git.openjdk.org/jdk8u-dev/pull/719#pullrequestreview-3452356658
More information about the jdk8u-dev
mailing list