-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8354024: [JMH] Create ephemeral UnixDomainSocketAddress provider with thread-safe close semantics #24568
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
… thread-safe close semantics
|
👋 Welcome back vyazici! A progress list of the required criteria for merging this PR into |
|
@vy 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 10 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 (@sendaoYan, @Michael-Mc-Mahon) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
sendaoYan
left a comment
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.
2020, seems do not needed?
test/micro/org/openjdk/bench/java/net/ServerUdsChannelHolder.java
Outdated
Show resolved
Hide resolved
@sendaoYan, thanks. Removed in 57e7ed7. |
test/micro/org/openjdk/bench/java/net/ServerUdsChannelHolder.java
Outdated
Show resolved
Hide resolved
test/micro/org/openjdk/bench/java/net/SocketChannelConnectionSetup.java
Outdated
Show resolved
Hide resolved
Michael-Mc-Mahon
left a comment
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 fine to me
|
/integrate |
|
/sponsor |
|
Going to push as commit 7dcc386.
Your commit was automatically rebased without conflicts. |
|
@Michael-Mc-Mahon @vy Pushed as commit 7dcc386. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
ServerUdsChannelHolderis introduced to manage the life cycle of aServerSocketChannelcreated using Unix domain sockets (UDS) in a thread-safe manner.Testing
Changes can be tested as follows:
Background
A UDS need to be pointed to a non-existent file, which is to be created by
bind(). The created file needs to be deleted as a part of the clean-up at exit. When tests employing UDS run in parallel, failures can happen at multiple places:bind()can fail, if the file is already created by another threadSocketChannelConnectionSetupin 8350915UnixSocketChannelReadWritein 8351601SocketChannelConnectionSetupin 8354024This PR introduces
ServerUdsChannelHolderutility to manage the life cycle of a UDS and avoids above shared issues by:AutoCloseable::closeProgress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24568/head:pull/24568$ git checkout pull/24568Update a local copy of the PR:
$ git checkout pull/24568$ git pull https://git.openjdk.org/jdk.git pull/24568/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 24568View PR using the GUI difftool:
$ git pr show -t 24568Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24568.diff
Using Webrev
Link to Webrev Comment