8337416: Fix -Wzero-as-null-pointer-constant warnings in misc. runtime code #20383
8337416: Fix -Wzero-as-null-pointer-constant warnings in misc. runtime code #20383kimbarrett wants to merge 1 commit intoopenjdk:masterfrom
Conversation
|
👋 Welcome back kbarrett! A progress list of the required criteria for merging this PR into |
|
@kimbarrett 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
|
@kimbarrett 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. |
dholmes-ora
left a comment
There was a problem hiding this comment.
This looks fine, and I think trivial.
I think there is an existing bug but probably better to file a separate JBS issue for that.
Thanks
| } | ||
| printf("Cpool size: %d\n", size); | ||
| fflush(0); | ||
| fflush(nullptr); |
There was a problem hiding this comment.
This looks like a bug. I think someone used 0 aka fd0 when they needed stdout for fflush.
There was a problem hiding this comment.
I assumed there was some reason for flushing all here, but you are right, this is probably a bug.
|
Thanks for reviews @dholmes-ora and @TheShermanTanker . I'll file a followup bug for the pre-existing fflush argument that @dholmes-ora pointed out. |
|
/integrate |
|
Going to push as commit bc7c255. |
|
@kimbarrett Pushed as commit bc7c255. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Please review this (perhaps trivial?) change that removes some uses of literal
0 as a null pointer constant in misc. runtime code. Most are changed to use
nullptr.
Testing: mach5 tier1
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/20383/head:pull/20383$ git checkout pull/20383Update a local copy of the PR:
$ git checkout pull/20383$ git pull https://git.openjdk.org/jdk.git pull/20383/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 20383View PR using the GUI difftool:
$ git pr show -t 20383Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/20383.diff
Webrev
Link to Webrev Comment