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

8253407: Move max_pow2 from test to src #279

Closed
wants to merge 1 commit into from

Conversation

stefank
Copy link
Member

@stefank stefank commented Sep 21, 2020

Small refactoring to move test utility function over to src, so that it can be used in both places.

Patch summary:

  • Moved the code
  • Replaced duplicate code in round_power_of_2
  • Adjusted to the surrounding powerOfTwo.hpp code and only accept integral types.
  • Added small gtest. (On the fence whether it's worth it or not)

Progress

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

Issue

Reviewers

Download

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

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 21, 2020

👋 Welcome back stefank! 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 Sep 21, 2020
@openjdk
Copy link

openjdk bot commented Sep 21, 2020

@stefank The following label will be automatically applied to this pull request: hotspot-runtime.

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 (add|remove) "label" command.

@openjdk openjdk bot added the hotspot-runtime hotspot-runtime-dev@openjdk.org label Sep 21, 2020
@stefank
Copy link
Member Author

stefank commented Sep 21, 2020

/label add hotspot-dev

@openjdk openjdk bot added the hotspot hotspot-dev@openjdk.org label Sep 21, 2020
@openjdk
Copy link

openjdk bot commented Sep 21, 2020

@stefank
The hotspot label was successfully added.

@stefank
Copy link
Member Author

stefank commented Sep 21, 2020

/label remove hotspot-runtime

@openjdk openjdk bot removed the hotspot-runtime hotspot-runtime-dev@openjdk.org label Sep 21, 2020
@openjdk
Copy link

openjdk bot commented Sep 21, 2020

@stefank
The hotspot-runtime label was successfully removed.

@mlbridge
Copy link

mlbridge bot commented Sep 21, 2020

Webrevs

Copy link

@kimbarrett kimbarrett left a comment

Choose a reason for hiding this comment

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

Looks good. The gtest seems fine, and it's already written.

@openjdk
Copy link

openjdk bot commented Sep 21, 2020

@stefank This change now passes all automated pre-integration checks. In addition to the automated checks, the change must also fulfill all project specific requirements

After integration, the commit message will be:

8253407: Move max_pow2 from test to src

Reviewed-by: kbarrett, tschatzl
  • If you would like to add a summary, use the /summary command.
  • To credit additional contributors, use the /contributor command.
  • To add additional solved issues, use the /issue command.

Since the source branch of this PR was last updated there have been 5 commits pushed to the master branch:

  • fbfb62d: 8253332: ZGC: Make heap views reservation platform independent
  • dad6edb: 8253321: java.util.Locale.LanguageRange#equals is inconsistent after calling hashCode
  • edc14f9: 8253286: Use expand_exact() instead of expand_at() for fixed requests in G1
  • bba948f: 8253411: [BACKOUT] [REDO] G1 incorrectly limiting young gen size when using the reserve can result in repeated full gcs
  • 955c2e6: 8253303: G1: Move static initialization of G1FromCardCache to a proper location

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid automatic rebasing, please merge master into your branch, and then specify the current head hash when integrating, like this: /integrate fbfb62dffefbd60bd24293ca44c99d7f193b6c4e.

➡️ 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 Sep 21, 2020
@stefank
Copy link
Member Author

stefank commented Sep 21, 2020

Thanks for reviewing!

@stefank
Copy link
Member Author

stefank commented Sep 21, 2020

I consider this trivial enough to push it now.

@stefank
Copy link
Member Author

stefank commented Sep 21, 2020

/integrate

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

openjdk bot commented Sep 21, 2020

@stefank Since your change was applied there have been 5 commits pushed to the master branch:

  • fbfb62d: 8253332: ZGC: Make heap views reservation platform independent
  • dad6edb: 8253321: java.util.Locale.LanguageRange#equals is inconsistent after calling hashCode
  • edc14f9: 8253286: Use expand_exact() instead of expand_at() for fixed requests in G1
  • bba948f: 8253411: [BACKOUT] [REDO] G1 incorrectly limiting young gen size when using the reserve can result in repeated full gcs
  • 955c2e6: 8253303: G1: Move static initialization of G1FromCardCache to a proper location

Your commit was automatically rebased without conflicts.

Pushed as commit 7e49eae.

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

@stefank stefank deleted the 8253407_max_power_of_2 branch September 28, 2020 07:54
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
3 participants