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
8275055: Improve HeapRegionRemSet::split_card() #5895
Conversation
|
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but I would like us to come up with better naming for the limit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
@@ -177,6 +177,10 @@ class G1CardSetContainer { | |||
void set_next(G1CardSetContainer* next) { | |||
_next = next; | |||
} | |||
|
|||
// Maximum size of the entries of any G1CardSetContainer in bits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This first can be removed now.
@tschatzl This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
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 141 new commits pushed to the
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.
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_heap_base_address
feels more natural to live in G1CollectedHeap
. Anyway, this is very subjective.
The local cached copy is intentional: we do not want the extra indirection via |
Thanks @albertnetymk @kstefanj and @kimbarrett for your reviews. /integrate |
Going to push as commit 7e28bdd.
Your commit was automatically rebased without conflicts. |
Hi all,
can I have reviews for this small change that improves HeapRegionRemSet::split_card() by reducing the number of (direct and indirect) memory accesses for it. It is hard to actually measure improvements because it's only called in concurrent code. So no particular improvements measured.
It also prepares that method for virtualizing the remembered set containers, allowing arbitrarily large heap region sizes JDK-8275056. This change is required then because the splitting of a card index into "region" and "card within region" should not be dependent on heap regions.
Testing: gha, gc/g1 local testing.
Thanks,
Thomas
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5895/head:pull/5895
$ git checkout pull/5895
Update a local copy of the PR:
$ git checkout pull/5895
$ git pull https://git.openjdk.java.net/jdk pull/5895/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5895
View PR using the GUI difftool:
$ git pr show -t 5895
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5895.diff