Skip to content
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

8345269: Fix -Wzero-as-null-pointer-constant warnings in ppc code #22466

Closed
wants to merge 5 commits into from

Conversation

kimbarrett
Copy link

@kimbarrett kimbarrett commented Nov 30, 2024

Please review this change to remove -Wzero-as-null-pointer-constant warnings
in ppc code.

Most places involve just changing literal 0 to nullptr.

Removed a dead return after ShouldNotReachHere() that is no longer needed.

Removed some unused Address constructors that had a default address argument
with literal 0 as the default value. These could have been changed to use
nullptr as the default value, but since they aren't used...

Testing:
GHA sanity test build, with and without -Wzero-as-null-pointer-constant enabled.
I don't have the capability to run tests for this platform, so hoping someone
from the aix-ppc maintainers can do more testing.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8345269: Fix -Wzero-as-null-pointer-constant warnings in ppc code (Enhancement - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22466/head:pull/22466
$ git checkout pull/22466

Update a local copy of the PR:
$ git checkout pull/22466
$ git pull https://git.openjdk.org/jdk.git pull/22466/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 22466

View PR using the GUI difftool:
$ git pr show -t 22466

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22466.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 30, 2024

👋 Welcome back kbarrett! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Nov 30, 2024

@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:

8345269: Fix -Wzero-as-null-pointer-constant warnings in ppc code

Reviewed-by: mdoerr, mbaesken

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 27 new commits pushed to the master branch:

  • cf0e1aa: 8345335: Add excluded jdk_foreign tests to manual group
  • 2c4567a: 8342651: Refactor array constant to use an array of jbyte
  • 72c6daf: 8346007: Incorrect copyright header in UModLNodeIdealizationTests.java
  • cc47918: 8345040: Clean up unused variables and code in generate_native_wrapper
  • c34b87c: 8345659: Fix broken alignment after ReservedSpace splitting in GC code
  • e294899: 8345647: Fix recent NULL usage backsliding in Shenandoah
  • d381d58: 8332268: C2: Add missing optimizations for UDivI/L and UModI/L and unify the shared logic with the signed nodes
  • 45c914c: 8343607: C2: Shenandoah crashes during barrier expansion in Continuation::enter
  • a21d21f: 8345609: [C1] LIR Operations with one input should be implemented as LIR_Op1
  • 2382a2d: 8345661: Simplify page size alignment in code heap reservation
  • ... and 17 more: https://git.openjdk.org/jdk/compare/d6b5264c3f7d0c4157ebd73b2f1a98dd15273c61...master

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.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the rfr Pull request is ready for review label Nov 30, 2024
@openjdk
Copy link

openjdk bot commented Nov 30, 2024

@kimbarrett The following label will be automatically applied to this pull request:

  • hotspot

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.

@openjdk openjdk bot added the hotspot hotspot-dev@openjdk.org label Nov 30, 2024
@mlbridge
Copy link

mlbridge bot commented Nov 30, 2024

Webrevs

@kimbarrett
Copy link
Author

Anyone? Especially somebody from the aix-ppc folks?

Copy link
Contributor

@TheRealMDoerr TheRealMDoerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing it! LGTM.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Dec 11, 2024
@kimbarrett
Copy link
Author

Thanks for reviews @MBaesken and @TheRealMDoerr

@kimbarrett
Copy link
Author

/integrate

@openjdk
Copy link

openjdk bot commented Dec 11, 2024

Going to push as commit 08bdeed.
Since your change was applied there have been 29 commits pushed to the master branch:

  • e4a34e9: 8345616: Unnecessary Hashtable usage in javax.swing.text.html.parser.Element
  • cce5808: 8345421: (bf) Create specific test for temporary direct buffers and the buffer size limit
  • cf0e1aa: 8345335: Add excluded jdk_foreign tests to manual group
  • 2c4567a: 8342651: Refactor array constant to use an array of jbyte
  • 72c6daf: 8346007: Incorrect copyright header in UModLNodeIdealizationTests.java
  • cc47918: 8345040: Clean up unused variables and code in generate_native_wrapper
  • c34b87c: 8345659: Fix broken alignment after ReservedSpace splitting in GC code
  • e294899: 8345647: Fix recent NULL usage backsliding in Shenandoah
  • d381d58: 8332268: C2: Add missing optimizations for UDivI/L and UModI/L and unify the shared logic with the signed nodes
  • 45c914c: 8343607: C2: Shenandoah crashes during barrier expansion in Continuation::enter
  • ... and 19 more: https://git.openjdk.org/jdk/compare/d6b5264c3f7d0c4157ebd73b2f1a98dd15273c61...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Dec 11, 2024
@openjdk openjdk bot closed this Dec 11, 2024
@kimbarrett kimbarrett deleted the fix-ppc-zero-null branch December 11, 2024 19:37
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Dec 11, 2024
@openjdk
Copy link

openjdk bot commented Dec 11, 2024

@kimbarrett Pushed as commit 08bdeed.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot hotspot-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants