-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8326433: Make file-local functions static in src/jdk.jdwp.agent/unix/native/libjdwp/exec_md.c #18013
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
…ve/libjava/childproc.c and src/jdk.jdwp.agent/unix/native/libjdwp/exec_md.c.
👋 Welcome back jiangli! A progress list of the required criteria for merging this PR into |
@jianglizhou The following labels 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 lists. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
@@ -62,7 +62,7 @@ static char *skipNonWhitespace(char *p) { | |||
// input/output/error file descriptors will not be closed | |||
// by this function. This function returns 0 on failure | |||
// and 1 on success. | |||
int | |||
static int |
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.
I think you should also make forkedChildProcess static. It was added at the same time.
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.
Updated.
@@ -131,7 +131,6 @@ ssize_t writeFully(int fd, const void *buf, size_t count); | |||
int restartableDup2(int fd_from, int fd_to); | |||
int closeSafely(int fd); | |||
int isAsciiDigit(char c); | |||
int closeDescriptors(void); |
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 seems that most of the APIs in this file should be static. I don't think you should selectively deal with just one of them because of the conflict. Since this ends up being a more involved change, and is in a different component than the jdwp change, it should probably have a separate PR.
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.
@plummercj thanks for looking into this! Sounds good to make the additional local functions static in these files. Perhaps we can use two different FRs. I'll make the current one to handle the ones in src/jdk.jdwp.agent/unix/native/libjdwp/exec_md.c.
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.
…e/unix/native/libjava/childproc.h. Will handle those with JDK-8326714.
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.
@jianglizhou 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 6 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Thanks for the quick review, @plummercj. |
Thanks for the review, @sspitsyn. |
/integrate |
Going to push as commit 0901ded.
Your commit was automatically rebased without conflicts. |
@jianglizhou Pushed as commit 0901ded. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Please help review this trivial fix for resolving
ld: error: duplicate symbol: closeDescriptors
when static linking with both libjdwp and libjava, thanks.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/18013/head:pull/18013
$ git checkout pull/18013
Update a local copy of the PR:
$ git checkout pull/18013
$ git pull https://git.openjdk.org/jdk.git pull/18013/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 18013
View PR using the GUI difftool:
$ git pr show -t 18013
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/18013.diff
Webrev
Link to Webrev Comment