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

8290495: Micro-optimize Method::can_be_statically_bound assertions #9548

Closed

Conversation

shipilev
Copy link
Member

@shipilev shipilev commented Jul 19, 2022

See the rationale in the bug.

The test time improves:

# Before
real 1m27.397s
user 2m39.937s
sys 0m5.966s

# After
real 1m13.443s ; -16%
user 2m24.238s ; -10%
sys 0m5.885s

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-8290495: Micro-optimize Method::can_be_statically_bound assertions

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 9548

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

Using diff file

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

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 19, 2022

👋 Welcome back shade! 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 openjdk bot added the rfr Pull request is ready for review label Jul 19, 2022
@openjdk
Copy link

openjdk bot commented Jul 19, 2022

@shipilev 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 Jul 19, 2022
@mlbridge
Copy link

mlbridge bot commented Jul 19, 2022

Webrevs

@dholmes-ora
Copy link
Member

As a general rule we don't care about the performance of non-product code. If you start down this path there is a huge amount of potential optimisation that might be done. Why is this one worthwhile?

Cheers.

@shipilev
Copy link
Member Author

As a general rule we don't care about the performance of non-product code. If you start down this path there is a huge amount of potential optimisation that might be done. Why is this one worthwhile?

I run lots of testing, so I am interested in simple stuff that optimizes test times. The more generic solution, #9543, yields substantial reducing in test times, but Ioi wanted this one too.

Copy link
Member

@dholmes-ora dholmes-ora left a comment

Choose a reason for hiding this comment

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

I'll approve just to avoid spending more cycles on this but I'd hate to see this become common place. :)

src/hotspot/share/oops/method.cpp Outdated Show resolved Hide resolved
@openjdk
Copy link

openjdk bot commented Jul 19, 2022

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

8290495: Micro-optimize Method::can_be_statically_bound assertions

Reviewed-by: dholmes, stuefe

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

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 ready Pull request is ready to be integrated label Jul 19, 2022
@shipilev
Copy link
Member Author

I'll approve just to avoid spending more cycles on this but I'd hate to see this become common place. :)

True, I am on the fence about fiddling about every ResourceMark use. That's why I did the more generic thing in that other PR, so we can slap ResourceMark-s pretty much wherever without obsessing about these details. :)

Copy link
Member

@tstuefe tstuefe left a comment

Choose a reason for hiding this comment

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

Makes sense.

@shipilev
Copy link
Member Author

Thanks all!

/integrate

@openjdk
Copy link

openjdk bot commented Jul 20, 2022

Going to push as commit 2ea3f54.
Since your change was applied there have been 43 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jul 20, 2022
@openjdk openjdk bot closed this Jul 20, 2022
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jul 20, 2022
@openjdk
Copy link

openjdk bot commented Jul 20, 2022

@shipilev Pushed as commit 2ea3f54.

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

@shipilev shipilev deleted the JDK-8290495-method-cbsb-optimize branch September 5, 2022 13:48
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