8297822: De-duplicate code in module jdk.sctp#11436
8297822: De-duplicate code in module jdk.sctp#11436minborg wants to merge 6 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back pminborg! A progress list of the required criteria for merging this PR into |
Webrevs
|
dfuch
left a comment
There was a problem hiding this comment.
Good to see all the duplication go away.
| @@ -0,0 +1,14 @@ | |||
| package sun.nio.ch.sctp; | |||
There was a problem hiding this comment.
Still need regular copyright header :-)
|
One thing to try is moving the files from src/jdk.sctp/windows/classes/sun/nio/ch/sctp to src/jdk.sctp/share/classes/sun/nio/ch/sctp and removing the src/jdk.sctp/windows, src/jdk.sctp/macosx, and src/jdk.sctp/aix tress. If that works then it would avoid needing to have 3 copies of the "unsupported" implementation and avoid include UnsupportedXXX classes in the Linux implementation. |
| @@ -1,5 +1,5 @@ | |||
| /* | |||
| * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. | |||
| * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved. | |||
There was a problem hiding this comment.
Please check the copyrights (2022), some look like they went back in time.
|
Please make sure that all related tests (as well as tier1 and tier2) pass before integrating. |
|
@minborg 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 116 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 (@dfuch, @RogerRiggs) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
The latest update looks quite good but you might want to update |
We have run tests on a box where SCTP was enabled and they passed. |
|
/integrate |
|
Hi Per, I will sponsor this PR after the RDP 1 fork (after the latest changes have been reviewed). |
|
Can either of you please have a look at the make file @AlanBateman or @RogerRiggs ? |
It looks right. SCTP used to be Solaris + Linux, now it's Linux only. If there is a low chance that it will remain the only port then we could move it to src/jdk.sctp/linux but no need to do that now. |
|
/sponsor |
|
/integrate |
|
/sponsor |
|
Going to push as commit 56c438b.
Your commit was automatically rebased without conflicts. |
|
Please note that Skara does not update the list of labels when new files are added to a PR after it's creation. It is up to the committer and reviewer to be aware of such changes during the lifetime of a PR. In this case, it would have been appropriate to add the |
|
Oh - I didn't know that. Thanks for the reminder Magnus! |
This PR proposes merging logic and optimising three classes that exist for aix, macos and windows.
Optimisation will reduce byte code. Below is an example for one of the many methods optimised.
Before:
After:
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/11436/head:pull/11436$ git checkout pull/11436Update a local copy of the PR:
$ git checkout pull/11436$ git pull https://git.openjdk.org/jdk pull/11436/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 11436View PR using the GUI difftool:
$ git pr show -t 11436Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/11436.diff