-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8273492: Move evacuation failure handling into G1YoungCollector #5419
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
8273492: Move evacuation failure handling into G1YoungCollector #5419
Conversation
|
👋 Welcome back tschatzl! A progress list of the required criteria for merging this PR into |
kstefanj
left a comment
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 in general, just one question.
| trace_phase(_gc_par_phases[RedirtyCards]); | ||
| debug_time("Post Evacuate Cleanup 2", _cur_post_evacuate_cleanup_2_time_ms); | ||
| if (G1CollectedHeap::heap()->evacuation_failed()) { | ||
| if (_gc_par_phases[RestorePreservedMarks]->uninitialized()) { |
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 looks a bit strange, why isn't this check using the passed in evacuation_failed like above? And if it can't shouldn't the check be !_gc_par_phases[RestorePreservedMarks]->uninitialized()?
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.
Probably some oversight when implementing some variants in that area. Will fix.
|
@tschatzl this pull request can not be integrated into git checkout submit/8273492-move-evac-failure-handling-to-younggc
git fetch https://git.openjdk.java.net/jdk master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
|
@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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
albertnetymk
left a comment
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 the original placement about the design, update stats iff evac_fail == false, is better; this is sth internal to G1Policy, not a caller's decision. IOW, sth like:
G1Policy::record_young_collection_end(bool concurrent_operation_is_full_mark, bool evac_fail) {
// Evacuation failures skew the timing too much ...
update_stats = !evac_fail;
}The same apply to G1Policy::record_pause.
Not strictly part of this PR:
num_regions_failed_evacuation is just a getter, right? Why the name difference btw the method and the field?
I agree with
I think this is coming from the collection set where the same naming ( |
|
Thanks @kstefanj @albertnetymk for your reviews. /integrate |
|
Going to push as commit 341de49.
Your commit was automatically rebased without conflicts. |
Hi all,
can I have reviews for this change that moves young gc evacuation failure handling (
G1EvacFailureRegions) fromG1CollectedHeaptoG1YoungCollector.Testing: tier1-3
Thanks,
Thomas
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5419/head:pull/5419$ git checkout pull/5419Update a local copy of the PR:
$ git checkout pull/5419$ git pull https://git.openjdk.java.net/jdk pull/5419/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5419View PR using the GUI difftool:
$ git pr show -t 5419Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5419.diff