-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8356036: (fs) FileKey.hashCode and UnixFileStore.hashCode implementations can use Long.hasCode #24987
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
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back swen! A progress list of the required criteria for merging this PR into |
@wenshao This change is no longer ready for integration - check the PR body for details. |
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.
Confirmed all replaced variables are long. And they are all final long fields, so we can ignore the double field read in race effects (and long even permits tearing reads)
/reviewers 2 |
@AlanBateman |
Needs to reviewed by maintainer in this area. |
/reviewers 2 reviewer |
Similar to #24959 and #24971, sun.nio.ch.FileKey/sun.nio.fs.UnixFileKey/sun.nio.fs.UnixFileStore in java.base can also be simplified similarly.
Replace manual bitwise operations in hashCode implementations of sun.nio.ch.FileKey/sun.nio.fs.UnixFileKey/sun.nio.fs.UnixFileStore with Long::hashCode.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24987/head:pull/24987
$ git checkout pull/24987
Update a local copy of the PR:
$ git checkout pull/24987
$ git pull https://git.openjdk.org/jdk.git pull/24987/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 24987
View PR using the GUI difftool:
$ git pr show -t 24987
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24987.diff
Using Webrev
Link to Webrev Comment