-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8253303 G1: Move static initialization of G1FromCardCache to a proper location #247
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
8253303 G1: Move static initialization of G1FromCardCache to a proper location #247
Conversation
👋 Welcome back tschatzl! A progress list of the required criteria for merging this PR into |
@tschatzl The following label 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 list. If you would like to change these labels, use the |
Webrevs
|
Mailing list message from Thomas Schatzl on hotspot-gc-dev: Hi, On 18.09.20 15:22, Albert Mingkun Yang wrote: thanks for your review. Thomas |
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.
Nice cleanup Thomas, consider it approved.
Just one minor thing before integrating.
// Also create a G1 rem set. | ||
_rem_set = new G1RemSet(this, _card_table, _hot_card_cache); | ||
_rem_set->initialize(max_reserved_regions()); | ||
|
||
|
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.
Please remove this additional line before integrating, unless you added it for good reason :)
@tschatzl 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 21 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 ➡️ To integrate this PR with the above commit message to the |
Mailing list message from Thomas Schatzl on hotspot-gc-dev: Hi Stefan, Albert, thanks for your reviews. On 18.09.20 22:09, Stefan Johansson wrote:
Done. Waiting a bit to push. Thanks, |
/integrate |
@tschatzl Since your change was applied there have been 21 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 955c2e6. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
in src/hotspot/share/gc/g1/g1RemSet.cpp:
488 void G1RemSet::initialize(uint max_reserved_regions) {
489 G1FromCardCache::initialize(num_par_rem_sets(), max_reserved_regions);
490 _scan_state->initialize(max_reserved_regions);
491 }
the static initialization is piggy-backed to G1RemSet instance initialization which is rather bad style. Fortunately there is only one G1RemSet instance and that method is only called once so no functional issue.
This change moves the initialization call, and after a bit of analysis move some more related code to more appropriate places.
Testing: local compilation, jtreg gc/g1, tier1-3 passed
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/247/head:pull/247
$ git checkout pull/247