Integrated: JDK-8275703: System.loadLibrary fails on Big Sur for libraries hidden from filesystem

Mandy Chung mchung at openjdk.java.net
Thu Oct 28 15:31:29 UTC 2021


On Tue, 26 Oct 2021 22:51:29 GMT, Mandy Chung <mchung at openjdk.org> wrote:

> On, macOS 11.x, system libraries are loaded from dynamic linker cache.  The libraries are no longer present on the filesystem.   `NativeLibraries::loadLibrary` checks for the file existence before calling `JVM_LoadLibrary`.   Such check no longer applies on Big Sur.   This proposes that on macOS >= 11, it will skip the file existence check and attempt to load a library for each path from java.library.path and system library path.

This pull request has now been integrated.

Changeset: 309acbf0
Author:    Mandy Chung <mchung at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/309acbf0e86a0d248294503fccc7a936fa0a846e
Stats:     203 lines in 10 files changed: 170 ins; 3 del; 30 mod

8275703: System.loadLibrary fails on Big Sur for libraries hidden from filesystem

Reviewed-by: dholmes, alanb, mcimadamore

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

PR: https://git.openjdk.java.net/jdk/pull/6127


More information about the core-libs-dev mailing list