[jdk17u-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
Fri Jun 24 19:26:49 UTC 2022


Hi all,

This pull request contains a backport of commit [fe807217](https://urldefense.com/v3/__https://github.com/openjdk/jdk/commit/fe807217a79753f84c00432e7451c17baa6645c5__;!!ACWV5N9M2RV99hQ!MkW3_smKqZUy9zFEOW5PDhZlOr-hIMC07lo2PPHPjswn7JKpMOqTXv5FhbdCjW0_w_cSEZkr-s4R3NRyE1OKYTGOi1zZ$ ) 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.

It applies cleanly to current jdk17u-dev head. The test it modifies passes after the patch.

Running the test was a little unusual. I needed to build the native component by hand and explicitly pass an argument to `jtreg`:


 $  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


test system is macOS Big Sur (11.5.2)

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

Commit messages:
 - Backport fe807217a79753f84c00432e7451c17baa6645c5

Changes: https://git.openjdk.org/jdk17u-dev/pull/506/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=506&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8287917
  Stats: 6 lines in 2 files changed: 3 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/506.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev pull/506/head:pull/506

PR: https://git.openjdk.org/jdk17u-dev/pull/506


More information about the jdk-updates-dev mailing list