-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8371381: [Shenandoah] Setting ergo flags should use FLAG_SET_ERGO #28242
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
base: master
Are you sure you want to change the base?
Conversation
|
👋 Welcome back rgithubli! A progress list of the required criteria for merging this PR into |
|
@rgithubli This change is no longer ready for integration - check the PR body for details. |
|
@rgithubli 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
|
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.
Reviewed the ergo flg setting macro changes. They look good to me.
For the passive mode that requires allowing evac reserve of 0, I'll request @kdnilsen or @earthling-amzn to review.
/reviewers 2
|
@ysramakrishna |
|
Hmm, setting |
| @@ -353,7 +353,7 @@ | |||
| "evacuation collection set (comprised of both young and old " \ | |||
| "regions) is also bounded by this parameter. In percents of " \ | |||
| "total (young-generation) heap size.") \ | |||
| range(1,100) \ | |||
| range(0,100) \ | |||
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.
If we allow this, somebody will file a bug because -XX:ShenandoahEvacReserve=0 will cause other modes to crash with divide by zero error.
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.
OK, I'll keep the range as it is (1,100), but instead of setting the default with ergo at here:
jdk/src/hotspot/share/gc/shenandoah/mode/shenandoahPassiveMode.cpp
Lines 40 to 42 in c6a8027
| if (!ShenandoahDegeneratedGC) { | |
| SHENANDOAH_ERGO_OVERRIDE_DEFAULT(ShenandoahEvacReserve, 0); | |
| } |
FLAG_SET_DEFAULT to bypass the check? We wouldn't have the data source origin in passive mode which is only meant to be diagnostic, but that's better than causing problems in the regular mode.
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.
Ah, missed your general comment above. I think we're talking about the same solution. I'll update the passive mode to use FLAG_SET_DEFAULT.
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.
Yeah, that's what I was suggesting. Thanks!
Setting ergo flags using
FLAG_SET_ERGO, instead ofFLAG_SET_DEFAULT, so we can have the right origin info.Had to expand
ShenandoahEvacReserverange fromrange(1,100)torange(0,100)because when we use shenandoah passive mode and degen is also turned off (-XX:ShenandoahGCMode=passive -XX:-ShenandoahDegeneratedGC), we set the ShenandoahEvacReserve to 0:jdk/src/hotspot/share/gc/shenandoah/mode/shenandoahPassiveMode.cpp
Line 41 in c6a8027
FLAG_SET_DEFAULTdoesn't check the range butFLAG_SET_ERGOdoes.Testing: jtreg gc. GHA pending.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28242/head:pull/28242$ git checkout pull/28242Update a local copy of the PR:
$ git checkout pull/28242$ git pull https://git.openjdk.org/jdk.git pull/28242/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28242View PR using the GUI difftool:
$ git pr show -t 28242Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28242.diff
Using Webrev
Link to Webrev Comment