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
8300769: Remove G1CollectionSet::_inc_bytes_used_before #12113
8300769: Remove G1CollectionSet::_inc_bytes_used_before #12113
Conversation
👋 Welcome back tschatzl! A progress list of the required criteria for merging this PR into |
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.
I think _bytes_used
is enough; the _before
suffix adds nothing and it's confusing -- there's no counterpart like _bytes_used_after
.
@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:
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 27 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. ➡️ To integrate this PR with the above commit message to the |
I considered that, but you could argue that the metric gathered here is "bytes used before" (gc, in the collection set). The "bytes used after" is calculated on the spot when it's needed just before passing it on to JFR. |
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.
Lgtm!
@tschatzl this pull request can not be integrated into git checkout submit/8300769-remove-inc_bytes_used_before
git fetch https://git.openjdk.org/jdk master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
@albertnetymk found that actually the information of |
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.
Better!
Thanks for your reviews |
Going to push as commit 3be5758.
Your commit was automatically rebased without conflicts. |
Hi all,
please review this removal of
G1CollectionSet::_inc_bytes_used_before
; this variable holds the amount of bytes used in eden regions, updated during mutator time. At the start of gc its value is copied toG1CollectionSet::_bytes_used_before
, and then never touched again. The_bytes_used_before
is read at end of gc, and then reset.This change simply removes
_inc_bytes_used_before
and directly uses_bytes_used_before
to accumulate eden region used bytes.Testing: gha
Thanks,
Thomas
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/12113/head:pull/12113
$ git checkout pull/12113
Update a local copy of the PR:
$ git checkout pull/12113
$ git pull https://git.openjdk.org/jdk pull/12113/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 12113
View PR using the GUI difftool:
$ git pr show -t 12113
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/12113.diff