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
8287917: System.loadLibrary does not work on Big Sur if JDK is built with macOS SDK 10.15 and earlier #1298
Conversation
…with macOS SDK 10.15 and earlier Reviewed-by: mchung
|
This backport pull request has now been updated with issue from the original commit. |
Test passes after manually building the native component (as with the 17u backport):
|
@jmtd This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
Ping comment This requires a review. It has been some time since I did it, so I'll check it's still clean Tomorrow. |
Sure, I'm happy to do that. It will mean opening a new PR since it's a different GitHub repository. That's not a problem. Before I do that I must first resolve a testing issue locally. The test is being skipped on my machine due to "Test skipped. Library BLAS not found"; with both jdk11u and jdk11u-dev, pre and post this patch. I'll figure that out first. |
@RealCLanger, the patch (after resolving the original conflict, i.e., the commit as in the PR today) applies clean to jdk11u and the test passes. For belt and braces, I really wanted to try and verify things by proving the test fail prior to applying the patch; unfortunately, my macOS development machine has updated itself since I did the backport: I initially had macOS Big Sur and SDK version 10.14; at the time I did the backport with these versions I could see the test fail. I now have SDK version MacOSX11.3.sdk. With this, the native component (exeLibraryCache.c) successfully loads the library To tackle this situation for future macOS work I'm going to investigate setting up some VMs of specific macOS and XCode versions. Side-note: The test harness runs twice, once to try and load I leave it up to you whether we should push this now or keep investigating. Thanks |
@jmtd ok. I also don't have an easy possiblity to test on such old OS and SDK releases. I suggest, since this only affects rather old scenarios, we just take this PR into jdk11u-dev for the January update. It's not worth transferring it to jdk11u now and maybe risking something during rampdown. I'll see if I can review it here. |
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.
LGTM. Please flag for approval.
@jmtd 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 216 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
|
/integrate |
Going to push as commit 9767c4c.
Your commit was automatically rebased without conflicts. |
This pull request contains a backport of commit fe807217 from the openjdk/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:
Manual testing results forthcoming; I'll add them as a comment on this PR.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev pull/1298/head:pull/1298
$ git checkout pull/1298
Update a local copy of the PR:
$ git checkout pull/1298
$ git pull https://git.openjdk.org/jdk11u-dev pull/1298/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1298
View PR using the GUI difftool:
$ git pr show -t 1298
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/1298.diff