-
Notifications
You must be signed in to change notification settings - Fork 5.9k
8342647: [macosx] Clean up the NSInvocation based call to NSProcessInfo.operatingSystemVersion #21595
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
Conversation
…fo.operatingSystemVersion
👋 Welcome back jpai! A progress list of the required criteria for merging this PR into |
@jaikiran This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. 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 148 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. ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
Any reviews for this one please? |
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.
It's great that we can finally call the function statically. =D
/integrate |
Going to push as commit 9e31e78.
Your commit was automatically rebased without conflicts. |
Can I please get a review of this change which does a tiny cleanup in the macosx specific code in
java_props_macosx.c
?As noted in https://bugs.openjdk.org/browse/JDK-8342647 the
setOSNameAndVersion
function used to dynamically callNSProcessInfo.operatingSystemVersion
because that property wasn't (statically) available until macosx 10.10 version. Since that version this property has been available even in the latest macosx versions https://developer.apple.com/documentation/foundation/nsprocessinfo/1410906-operatingsystemversion, so it's now possible to statically reference it in the code.The change in this PR replaces the use of
NSInvocation
with the static reference to this property. No new tests have been added. Existing tier1, tier2 and tier3 tests with this change have all passed.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/21595/head:pull/21595
$ git checkout pull/21595
Update a local copy of the PR:
$ git checkout pull/21595
$ git pull https://git.openjdk.org/jdk.git pull/21595/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 21595
View PR using the GUI difftool:
$ git pr show -t 21595
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/21595.diff
Using Webrev
Link to Webrev Comment