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

8254269: simplify Node::disconnect_inputs #589

Closed
wants to merge 3 commits into from

Conversation

navyxliu
Copy link
Member

@navyxliu navyxliu commented Oct 10, 2020


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Testing

Linux x64 Windows x64 macOS x64
Build ✔️ (5/5 passed) ✔️ (2/2 passed) ✔️ (2/2 passed)
Test (tier1) ✔️ (9/9 passed) ✔️ (9/9 passed) ✔️ (9/9 passed)

Issue

Reviewers

Download

$ git fetch https://git.openjdk.java.net/jdk pull/589/head:pull/589
$ git checkout pull/589

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 10, 2020

👋 Welcome back xliu! 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 Oct 10, 2020

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

  • hotspot-compiler

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 hotspot-compiler hotspot-compiler-dev@openjdk.org rfr Pull request is ready for review labels Oct 10, 2020
@mlbridge
Copy link

mlbridge bot commented Oct 10, 2020

Webrevs

@navyxliu
Copy link
Member Author

/summary Node::disconnect_inputs cuts off all input edges without exception.

@openjdk
Copy link

openjdk bot commented Oct 10, 2020

@navyxliu Setting summary to Node::disconnect_inputs cuts off all input edges without exception.

Copy link
Member

@cl4es cl4es left a comment

Choose a reason for hiding this comment

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

Nice cleanup! A few suggestions inline, but looks good as-is, too.

src/hotspot/share/opto/node.cpp Outdated Show resolved Hide resolved
src/hotspot/share/opto/node.cpp Outdated Show resolved Hide resolved
@openjdk
Copy link

openjdk bot commented Oct 10, 2020

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

8254269: simplify Node::disconnect_inputs

Node::disconnect_inputs cuts off all input edges without exception.

Reviewed-by: redestad, kvn

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

  • d7128e7: 8254090: Collectors.toUnmodifiableList exposes shared secret
  • df1f132: 8253563: Change sun.security.jca.Providers.threadLists to be ThreadLocal
  • c7f0064: 8253899: Make IsClassUnloadingEnabled signature match specification
  • aad3cf4: 8254234: Add test library stream object builder
  • 4184959: 8252374: Add a new factory method to concatenate a sequence of BodyPublisher instances into a single publisher.
  • 05459df: 8253765: C2: Control randomization in StressLCM and StressGCM
  • 6620b61: 8254573: Shenandoah: Streamline/inline native-LRB entry point
  • a6c23b7: 8253923: C2 doesn't always run loop opts for compilations that include loops
  • dfe8ba6: 8254320: Shenandoah: C2 native LRB should activate for non-cset objects
  • 295a44a: 8254558: Remove unimplemented Arguments::do_pd_flag_adjustments
  • ... and 16 more: https://git.openjdk.java.net/jdk/compare/ec41046c5ce7077eebf4a3c265f79c7fba33d916...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.

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 (@cl4es, @vnkozlov) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Oct 10, 2020
Optimize it for the precedence loop. because there's no null between
2 non-null precedences, disconnect_inputs can break at a null value.
@cl4es
Copy link
Member

cl4es commented Oct 11, 2020

I think the changes in b8a7275 might be fine, but they are more subtle than the cleanup in the preceding version and I'm not comfortable reviewing them. I think it needs a more thorough examination of if those optimizations always hold. Could probably use some more asserts, a few tests and lift the documented assumption of the structure of the input to a more visible place. My suggestion is to push this ahead with the straightforward cleanup you had in 4a9d803 and file a follow-up RFE for the other optimization.

src/hotspot/share/opto/node.cpp Show resolved Hide resolved
src/hotspot/share/opto/node.cpp Outdated Show resolved Hide resolved
src/hotspot/share/opto/node.cpp Show resolved Hide resolved
@navyxliu
Copy link
Member Author

I think the changes in b8a7275 might be fine, but they are more subtle than the cleanup in the preceding version and I'm not comfortable reviewing them. I think it needs a more thorough examination of if those optimizations always hold. Could probably use some more asserts, a few tests and lift the documented assumption of the structure of the input to a more visible place. My suggestion is to push this ahead with the straightforward cleanup you had in 4a9d803 and file a follow-up RFE for the other optimization.

yes, thank for the advice.

src/hotspot/share/opto/node.cpp Outdated Show resolved Hide resolved
@navyxliu
Copy link
Member Author

I filed JDK-8254369 for the bug. Let's keep this PR as a clean-up.

@navyxliu
Copy link
Member Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Oct 12, 2020
@openjdk
Copy link

openjdk bot commented Oct 12, 2020

@navyxliu
Your change (at version 5c6bb10) is now ready to be sponsored by a Committer.

@vnkozlov
Copy link
Contributor

/sponsor

@openjdk openjdk bot closed this Oct 12, 2020
@openjdk openjdk bot added integrated Pull request has been integrated and removed sponsor Pull request is ready to be sponsored ready Pull request is ready to be integrated rfr Pull request is ready for review labels Oct 12, 2020
@openjdk
Copy link

openjdk bot commented Oct 12, 2020

@vnkozlov @navyxliu Since your change was applied there have been 26 commits pushed to the master branch:

  • d7128e7: 8254090: Collectors.toUnmodifiableList exposes shared secret
  • df1f132: 8253563: Change sun.security.jca.Providers.threadLists to be ThreadLocal
  • c7f0064: 8253899: Make IsClassUnloadingEnabled signature match specification
  • aad3cf4: 8254234: Add test library stream object builder
  • 4184959: 8252374: Add a new factory method to concatenate a sequence of BodyPublisher instances into a single publisher.
  • 05459df: 8253765: C2: Control randomization in StressLCM and StressGCM
  • 6620b61: 8254573: Shenandoah: Streamline/inline native-LRB entry point
  • a6c23b7: 8253923: C2 doesn't always run loop opts for compilations that include loops
  • dfe8ba6: 8254320: Shenandoah: C2 native LRB should activate for non-cset objects
  • 295a44a: 8254558: Remove unimplemented Arguments::do_pd_flag_adjustments
  • ... and 16 more: https://git.openjdk.java.net/jdk/compare/ec41046c5ce7077eebf4a3c265f79c7fba33d916...master

Your commit was automatically rebased without conflicts.

Pushed as commit bff586f.

💡 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-compiler hotspot-compiler-dev@openjdk.org integrated Pull request has been integrated
3 participants