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

8289538: Make G1BlockOffsetTablePart unaware of block sizes #9395

Closed

Conversation

tschatzl
Copy link
Contributor

@tschatzl tschatzl commented Jul 6, 2022

Hi all,

can I have reviews for this change that makes G1BlockOffsetTablePart unaware of block sizes: as discussed in PR#9059/JDK-8287555 this is a good idea to make G1BlockOffsetTablePart just for "dumb" retrieval of the BOT entries, which makes the code simpler, avoiding some calling back and forth between HeapRegion and G1BlockOffsetTablePart.

There is still the wart that G1BlockOffsetTablePart::verify() needs block_size, but since it's just verification I think this is fine. An alternative suggested by @albertnetymk is to remove that method completely.

Testing: local compilation, gha, some benchmark checking that card scans/ms does not degrade

Thanks,
Thomas


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-8289538: Make G1BlockOffsetTablePart unaware of block sizes

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 9395

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

Using diff file

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

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 6, 2022

👋 Welcome back tschatzl! 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 changed the title 8289538 8289538: Make G1BlockOffsetTablePart unaware of block sizes Jul 6, 2022
@openjdk openjdk bot added the rfr Pull request is ready for review label Jul 6, 2022
@openjdk
Copy link

openjdk bot commented Jul 6, 2022

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

  • hotspot-gc

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-gc hotspot-gc-dev@openjdk.org label Jul 6, 2022
@mlbridge
Copy link

mlbridge bot commented Jul 6, 2022

Webrevs

@tschatzl tschatzl marked this pull request as draft July 6, 2022 12:09
@tschatzl tschatzl marked this pull request as ready for review July 6, 2022 12:11
@openjdk openjdk bot added rfr Pull request is ready for review and removed rfr Pull request is ready for review labels Jul 6, 2022
Copy link
Member

@albertnetymk albertnetymk left a comment

Choose a reason for hiding this comment

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

Just some minor & subjective comment.

@openjdk
Copy link

openjdk bot commented Jul 6, 2022

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

8289538: Make G1BlockOffsetTablePart unaware of block sizes

Reviewed-by: ayang, iwalulya

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 master branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential 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 6, 2022
Copy link
Member

@walulyai walulyai left a comment

Choose a reason for hiding this comment

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

Lgtm!

@tschatzl
Copy link
Contributor Author

tschatzl commented Jul 7, 2022

Thanks @walulyai @albertnetymk for your reviews.

/integrate

@openjdk
Copy link

openjdk bot commented Jul 7, 2022

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

  • 5564eff: 8289763: Remove NULL check in CDSProtectionDomain::init_security_info()
  • a694e9e: 8288838: jpackage: file association additional arguments

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Jul 7, 2022

@tschatzl Pushed as commit f7b1830.

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

@tschatzl tschatzl deleted the submit/move-block-size-out-of-bot branch July 8, 2022 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-gc hotspot-gc-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants