New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8275703: System.loadLibrary fails on Big Sur for libraries hidden from filesystem #30
Conversation
👋 Welcome back goetz! A progress list of the required criteria for merging this PR into |
This backport pull request has now been updated with issue from the original commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good mostly.
Minor comments (leave it to you if you want to add)
src/hotspot/share/prims/jvm.cpp
Instead of
log_info(library)("Failed to load library %s", name);
we could use
log_info(os)("Failed to load library %s", name);
The comment from
src/java.base/share/classes/jdk/internal/loader/NativeLibraries.java
- Load a native library from the given file. Returns null if the given
- library is determined to be non-loadable, which is system-dependent.
could be added to
src/java.base/share/classes/java/lang/ClassLoader.java
at an approriate place.
@GoeLin This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 2 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Thanks for the review! As for the comment ... I did not find an appropriate place. The code is split into several classes after the reengineering. |
Pre-submit failures: dependencies missing |
/integrate |
Going to push as commit f7346f0.
Your commit was automatically rebased without conflicts. |
I backport this for parity with 11.0.15-oracle.
The code touched was completely reworked in jdk15 by "8228336: Refactor native library loading implementation"
make/test/JtregNativeJdk.gmk
Trivial resolve due to context.
src/hotspot/share/prims/jvm.cpp
Applies clean, but does not compile.
I removed "log_info(library)("Failed to load library %s", name);"
Logging was only added to this file in jdk15 with "8187305: Add logging for shared library loads/unloads"
Changes to
src/java.base/macosx/classes/jdk/internal/loader/ClassLoaderHelper.java
applied to
src/java.base/macosx/classes/java/lang/ClassLoaderHelper.java
Fits well.
Changes to
src/java.base/share/classes/jdk/internal/loader/NativeLibraries.java
applied to class NativeLibrary in java/lang/ClassLoader.java.
I had to modify the code.
Changes to
src/java.base/share/native/libjava/NativeLibraries.c
applied to
src/java.base/share/native/libjava/ClassLoader.c
Fits acceptable.
Changes to
src/java.base/unix/classes/jdk/internal/loader/ClassLoaderHelper.java
applied to
src/java.base/unix/classes/java/lang/ClassLoaderHelper.java
Fits well.
Changes to
src/java.base/windows/classes/jdk/internal/loader/ClassLoaderHelper.java
applied to
src/java.base/windows/classes/java/lang/ClassLoaderHelper.java
Fits well.
SAP testing passed.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk11u pull/30/head:pull/30
$ git checkout pull/30
Update a local copy of the PR:
$ git checkout pull/30
$ git pull https://git.openjdk.java.net/jdk11u pull/30/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 30
View PR using the GUI difftool:
$ git pr show -t 30
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk11u/pull/30.diff