8385728: Serial: Check empty MemRegion in maintain_old_to_young_invariant#31341
8385728: Serial: Check empty MemRegion in maintain_old_to_young_invariant#31341albertnetymk wants to merge 1 commit into
Conversation
|
👋 Welcome back ayang! A progress list of the required criteria for merging this PR into |
|
@albertnetymk 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 59 new 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 this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
@albertnetymk 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 /label pull request command. |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
tschatzl
left a comment
There was a problem hiding this comment.
Lgtm, but I would somewhat strongly consider adding at least an assert(!mr.is_empty()) to both CardTable methods - in the worst case it will crash the VM (passing MemRegion() accidentally.
Sure; will do so in a followup PR. Wanna avoid adding risky logic in shared code as part of Serial-only PR. |
jsikstro
left a comment
There was a problem hiding this comment.
Looks good.
I agree with Thomas' review, it would be nice with asserts in the shared CardTable functions.
Add explicit
is_empty()checks before callingclear_MemRegion()anddirty_MemRegion()inmaintain_old_to_young_invariantto avoid passing empty MemRegions.The alternative would be adding early returns in those two shared methods, but inspecting all existing callers shows they never pass empty regions, so I chose to fix the Serial GC caller rather than modify shared code.
Test: tier1-3
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/31341/head:pull/31341$ git checkout pull/31341Update a local copy of the PR:
$ git checkout pull/31341$ git pull https://git.openjdk.org/jdk.git pull/31341/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 31341View PR using the GUI difftool:
$ git pr show -t 31341Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/31341.diff
Using Webrev
Link to Webrev Comment