-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8250961: Move Universe::update_heap_info_at_gc to CollectedHeap #27
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
Conversation
|
👋 Welcome back adityam! A progress list of the required criteria for merging this PR into |
|
@adityamandaleeka The following labels will be automatically applied to this pull request: |
|
/label add "hotspot-gc" |
|
@adityamandaleeka Usage:
|
|
/label add hotspot-gc |
|
@adityamandaleeka |
|
/label remove hotspot |
|
@adityamandaleeka |
Webrevs
|
| // Historic gc information | ||
| size_t _heap_capacity_at_last_gc; | ||
| size_t _heap_used_at_last_gc; | ||
|
|
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.
These should be initialized in the constructor.
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.
Move these up to the other variables.
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.
Now that the variables and functions have moved to CollectedHeap, I don't think we need the heap infix anymore.
Maybe rename variables to be named:
_capacity_at_last_gc
_used_at_last_gc
Functions:
free_at_last_gc()
used_at_last_gc()
update_capacity_and_used_at_gc()
| // Historic gc information | ||
| size_t get_heap_free_at_last_gc() { return _heap_capacity_at_last_gc - _heap_used_at_last_gc; } | ||
| size_t get_heap_used_at_last_gc() { return _heap_used_at_last_gc; } | ||
| void update_heap_info_at_gc(); | ||
|
|
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.
Maybe move these to after unused(). Alternatively, move it near soft_ref_policy(), since this is currently only used by soft ref handling.
|
/label remove shenandoah |
|
@stefank |
|
@stefank Thanks for the suggestions. I've updated the PR. |
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.
Thanks. Just two small nits below. You still need a second reviewer before this can be integrated.
| size_t free_at_last_gc() { return _capacity_at_last_gc - _used_at_last_gc; } | ||
| size_t used_at_last_gc() { return _used_at_last_gc; } |
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.
There are some unnecessary spaces between () and {. Could you also make these functions const?
|
@adityamandaleeka 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:
Since the source branch of this PR was last updated there have been 34 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 automatic rebasing, please merge As you do not have Committer status in this project, an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@stefank, @tschatzl, @kimbarrett) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
/reviewers 2 |
|
@stefank |
|
Looks good except for Stefan's comments about free/used_at_last_gc(). |
|
@kimbarrett Only the author (@adityamandaleeka) is allowed to issue the |
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'm assuming the small changes to free/used_at_last_gc will be made.
|
Thanks for the reviews @stefank @tschatzl @kimbarrett . I pushed an update addressing the last comments. |
|
Thanks. Could you merge in master, make sure that this still builds, and run the jtreg tests in test/hotspot/jtreg/gc? After that you can add a comment with /integrate, and I'll sponsor this patch for you. |
|
/integrate |
|
@adityamandaleeka |
|
@adityamandaleeka Your branch is still 34 commits behind openjdk:master. It doesn't look like you merged the master branch into your 8250961. Or did you only do that locally? |
|
@stefank Yes, I did the merge/build/test locally and didn't push anything since I saw the comment from the bot above saying that the change would be auto-rebased when merging since there are no conflicts with my branch. |
|
@stefank Only the author (@adityamandaleeka) is allowed to issue the |
|
/sponsor |
|
@stefank @adityamandaleeka Since your change was applied there have been 34 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 6a00534. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
|
This caused a failure building without precompiled headers. @kimbarrett is handling that with JDK-8252995. |
…cv-port-25 RISC-V: loom: Adjust loom's bottom frame to RISC-V frame's abi
… jtreg main class (openjdk#27) Reviewed-by: @franferrax, @gnu-andrew
JVM-1874: materialization breaks the trailing barrier in Initializer
… jtreg main class (openjdk#27) Reviewed-by: @franferrax, @gnu-andrew
Fix matcher and access flags
Reviewed-by: asmehra
This is a small refactoring that moves
update_heap_info_at_gc()and related members toCollectedHeap. There should be no behavioral change.jdk/hotspot tier1 passed
JBS: https://bugs.openjdk.java.net/browse/JDK-8250961
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/27/head:pull/27$ git checkout pull/27