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
8254075: Shenandoah: Remove ShenandoahCodeRootsStyle diagnostic flag and related test #524
Conversation
|
@zhengyu123 The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
Looks fine to me, except ClassUnloading
handling in one place.
#else | ||
return false; | ||
#endif | ||
return true; |
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.
Hold on, this used to check ClassUnloading
, should it continue to check it?
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.
No. I actually puzzled why checked it here, our concurrent roots scanner can handle both scenarios.
Maybe a leftover from concurrent roots to concurrent class unloading transition?
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.
It is maybe something that disables concurrent class unloading when -ClassUnloading
is specified? Although it should have been handled in shenandoahArguments.cpp
. Still, I'd prefer to leave the behavior exact, and then remove the ClassUnloading
reference in a separate 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.
Make sense, updated.
@zhengyu123 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 7 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
|
/integrate |
@zhengyu123 Since your change was applied there have been 9 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 51fdb4c. |
Shenandoah introduced fast code roots iteration (ShenandoahCodeRootsStyle = 2), also kept 2 additional iteration mechanism (ShenandoahCodeRootsStyle = 0 and 1), mainly for verification purpose.
Today, Shenandoah normally iterates code roots concurrently using style 2, while style 0 and 1 require safepoints, that makes style 0 and 1 verification less useful. Besides, Shenandoah has much improved verifier, more suitable for the purpose.
Let's remove this diagnostic flag and related test.
Test:
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/524/head:pull/524
$ git checkout pull/524