[jdk8u-dev] RFR: 8269668: [aarch64] java.library.path not including /usr/lib64

Andrew John Hughes andrew at openjdk.org
Tue Nov 11 22:47:42 UTC 2025


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.

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

Commit messages:
 - Backport 05c76978a6954897500c3dc8ac6aeca0f23e57cd

Changes: https://git.openjdk.org/jdk8u-dev/pull/719/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=719&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8269668
  Stats: 15 lines in 1 file changed: 7 ins; 0 del; 8 mod
  Patch: https://git.openjdk.org/jdk8u-dev/pull/719.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u-dev.git pull/719/head:pull/719

PR: https://git.openjdk.org/jdk8u-dev/pull/719


More information about the jdk8u-dev mailing list