[jdk11u-dev] RFR: 8287917: System.loadLibrary does not work on Big Sur if JDK is built with macOS SDK 10.15 and earlier
Jonathan Dowland
jdowland at openjdk.org
Tue Aug 2 10:45:21 UTC 2022
On Tue, 2 Aug 2022 10:12:51 GMT, Jonathan Dowland <jdowland at openjdk.org> wrote:
> This pull request contains a backport of commit [fe807217](https://github.com/openjdk/jdk/commit/fe807217a79753f84c00432e7451c17baa6645c5) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.
>
> The commit being backported was authored by Yoshiki Sato on 15 Jun 2022 and was reviewed by Mandy Chung.
>
> I wish to backport it for Oracle parity.
>
> It does not apply cleanly due to a renamed file in jdk master subsequent to 11u:
>
> src/java.base/macosx/classes/{java/lang => jdk/internal/loader}/ClassLoaderHelper.java
>
> Manual testing results forthcoming; I'll add them as a comment on this PR.
Test passes after manually building the native component ([as with the 17u backport](https://github.com/openjdk/jdk17u-dev/pull/506)):
$ pushd test/jdk/java/lang/RuntimeTests/loadLibrary/exeLibraryCache
$ cc exeLibraryCache.c -o LibraryCache
$ popd
$ $JT_HOME/bin/jtreg -jdk:build/macosx-x86_64-server-release/images/jdk \
-nativepath:test/jdk/java/lang/RuntimeTests/loadLibrary/exeLibraryCache \
test/jdk/java/lang/RuntimeTests/loadLibrary/exeLibraryCache/LibraryFromCache.java
-------------
PR: https://git.openjdk.org/jdk11u-dev/pull/1298
More information about the jdk-updates-dev
mailing list