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 #9077
Conversation
…with macOS SDK 10.15 and earlier
|
@satoyoshiki The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
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. Thanks for fixing this.
As a background, Big Sur reports 10.16 as backward compatibility when built with macOS SDK 10.15 and earlier. Hence this needs to check for os version 10.16 that supports dynamic linker cache.
@@ -42,6 +42,8 @@ | |||
|
|||
public class LibraryFromCache { | |||
public static void main(String[] args) throws IOException { | |||
System.out.println("os.version = " + System.getProperty("os.version")); |
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.
The copyright end year needs to be updated.
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.
Thanks for catching.
@satoyoshiki 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 788 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@mlchung) but any other Committer may sponsor as well.
|
/integrate |
@satoyoshiki |
/sponsor |
@mlchung The PR has been updated since the change author (@satoyoshiki) issued the |
/integrate |
@satoyoshiki |
/sponsor |
Going to push as commit fe80721.
Your commit was automatically rebased without conflicts. |
@mlchung @satoyoshiki Pushed as commit fe80721. |
Please review this PR.
SDK 10.15 and earlier reports os.version as 10.16 on Big Sur. This fix will check if dynamic linker support, which is supported from Big Sur, is available or not on the OS even if os.version is reported as 10.16 instead of 11. The os.version 10.16 doesn't include the update version like y of 10.x.y. Hence the change only see if it is 10.16 or not.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/9077/head:pull/9077
$ git checkout pull/9077
Update a local copy of the PR:
$ git checkout pull/9077
$ git pull https://git.openjdk.org/jdk pull/9077/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 9077
View PR using the GUI difftool:
$ git pr show -t 9077
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/9077.diff