-
Notifications
You must be signed in to change notification settings - Fork 36
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
8342848: Shenandoah: Marking bitmap may not be completely cleared in generational mode #523
Conversation
…generational mode
👋 Welcome back xpeng! A progress list of the required criteria for merging this PR into |
@pengxiaolong 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 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the 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 (@earthling-amzn) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
The test failure should not be caused by this change, spotted the same failure in other open PR:
|
Yes, we have a ticket for this test failure: https://bugs.openjdk.org/browse/JDK-8342734. |
@@ -26,6 +26,7 @@ | |||
#define SHARE_VM_GC_SHENANDOAH_SHENANDOAHGENERATION_HPP | |||
|
|||
#include "memory/allocation.hpp" | |||
#include "gc/shenandoah/shenandoahAffiliation.hpp" |
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.
Nit, but shenandoah/shenandoahAffiliation.hpp
should come between heuristics/shenandoahSpaceInfo.hpp
and shenandoah/shenandoahGenerationType.hpp
.
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.
Fixed, thanks.
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.
Okay with me to /integrate after fixing include order in shenandoahGeneration.hpp
/integrate |
@pengxiaolong |
/sponsor |
Going to push as commit 55c6f67.
Your commit was automatically rebased without conflicts. |
@earthling-amzn @pengxiaolong Pushed as commit 55c6f67. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
In the investigation of the crashe I saw in PR #516, I happened to reproduce the crash GenShen TIP as well.
The crash was reproduced multi times on both AWS r7g-4xlarge and r7i-4xlarge instances by running test below repeatedly:
Crash:
With logging/instrumentation, it seems to be caused by the one line code
bool needs_reset = _generation->contains(region) || !region->is_affiliated();
, considering bitmap reset is a concurrent operation, if is possible mutator thread changes the affiliation from FREE to YOUNG when bitmap reset is running, both_generation->contains(region)
and!region->is_affiliated()
can be false when affiliation is FREE and mutator is updating it at the same time.Logs from instrumentation:
The fix is simple, just need to swap the two tests,
!region->is_affiliated()
should be evaluated prior to_generation->contains(region)
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/shenandoah.git pull/523/head:pull/523
$ git checkout pull/523
Update a local copy of the PR:
$ git checkout pull/523
$ git pull https://git.openjdk.org/shenandoah.git pull/523/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 523
View PR using the GUI difftool:
$ git pr show -t 523
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/shenandoah/pull/523.diff
Webrev
Link to Webrev Comment