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
8272811: Document the effects of building with _GNU_SOURCE in os_posix.hpp #5212
Conversation
|
@dholmes-ora The following label 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 list. If you would like to change these labels, use the /label pull request command. |
Shouldn't something along those lines also be mentioned where it's actually defined? Like:
jdk/make/autoconf/flags-cflags.m4
Line 432 in d34f17c
ALWAYS_DEFINES_JVM="-D_GNU_SOURCE -D_REENTRANT" |
@jerboaa thanks for taking a look. I initially planned to document it in the makefiles somewhere but then found that we don't document why we use any flags there :( Plus there are a number of places where -D_GNU_SOURCE is used and I only want to document the reasoning for the VM which would then beg the question is to why the other uses are not documented somehow. So I just put it in os_posix.hpp where it was more likely to be seen when needed. |
@iklam thanks for taking a look. Hmmmm tricky one. I think you are right. Using -D_GNU_SOURCE affects the build, but we are documenting the results of that and those are the effects of using the flag. |
Fair enough. |
@dholmes-ora This change now passes all automated pre-integration checks. 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 34 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.
|
/integrate |
Going to push as commit c4c76e2.
Your commit was automatically rebased without conflicts. |
@dholmes-ora Pushed as commit c4c76e2. |
Please review this trivial code documentation enhancement based on discussions here:
http://mail.openjdk.java.net/pipermail/jdk-dev/2021-August/005946.html
Thanks,
David
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5212/head:pull/5212
$ git checkout pull/5212
Update a local copy of the PR:
$ git checkout pull/5212
$ git pull https://git.openjdk.java.net/jdk pull/5212/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5212
View PR using the GUI difftool:
$ git pr show -t 5212
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5212.diff