Skip to content

8268458: Add verification type for evacuation failures #4473

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

Conversation

tschatzl
Copy link
Contributor

@tschatzl tschatzl commented Jun 11, 2021

Hi all,

can I have reviews for this change that adds a new verification type (argument for -XX:VerifyGCType for G1) that only enables verification after an evacuation failure?

The reasons is that time and time again we have issues with evacuation failure as it's by far not tested as much as regular collection, and reproducing issues then is often hampered by that there is no way to just verify after verification failure. Enabling it just for all young collections is possible, but typically does not help much.

Fwiw, this change requires a small semantics change in how the current VerifyGCType is compared to the one stored as active (i.e. in G1HeapVerifier::_enabled_verification_types). Since the situations that can be enabled are not distinct any more (any young gc can have an evacuation failure), the existing check for a given set bit in G1HeapVerifier::should_verify() does not work any more.

This also means that the previous assumption that G1VerifyType::G1VerifyAll is not the same as all flags enabled can not be checked any more. I do not think this is any loss in functionality (see the gtests for removed checks).

The same functionality could also have been implemented by injecting all of the young gen type bits into the existing type on evacuation failure at the cost of remembering that the user selected evacuation failures for evacuation somewhere else. Not sure if that would be simpler.

Testing: tier1-2 (still running), updated test

Thanks,
Thomas


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8268458: Add verification type for evacuation failures

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4473/head:pull/4473
$ git checkout pull/4473

Update a local copy of the PR:
$ git checkout pull/4473
$ git pull https://git.openjdk.java.net/jdk pull/4473/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 4473

View PR using the GUI difftool:
$ git pr show -t 4473

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4473.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 11, 2021

👋 Welcome back tschatzl! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Jun 11, 2021

@tschatzl The following label will be automatically applied to this pull request:

  • hotspot-gc

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.

@openjdk openjdk bot added the hotspot-gc hotspot-gc-dev@openjdk.org label Jun 11, 2021
@tschatzl
Copy link
Contributor Author

This change helped a lot with JDK-8267073.

@tschatzl tschatzl force-pushed the submit/8268458-young-evac-failure-verifygctype branch from 938fb8b to b03fe64 Compare June 11, 2021 13:43
@tschatzl tschatzl marked this pull request as ready for review June 14, 2021 12:54
@openjdk openjdk bot added the rfr Pull request is ready for review label Jun 14, 2021
@mlbridge
Copy link

mlbridge bot commented Jun 14, 2021

Webrevs

Copy link

@kimbarrett kimbarrett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

G1VerifyType seems poorly named. The name suggests a single value, but it's really a selection bitmask. Perhaps a followup RFE?

@openjdk
Copy link

openjdk bot commented Jun 19, 2021

@tschatzl 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:

8268458: Add verification type for evacuation failures

Reviewed-by: kbarrett, iwalulya

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 115 new commits pushed to the master branch:

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 master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jun 19, 2021
@tschatzl
Copy link
Contributor Author

Thanks @kimbarrett for your review. I agree that we should probably rename that flag, I'll file an RFE

@tschatzl
Copy link
Contributor Author

Thanks @kimbarrett @walulyai for your reviews.

Integrate

@tschatzl
Copy link
Contributor Author

/integrate

@openjdk
Copy link

openjdk bot commented Jun 21, 2021

Going to push as commit cd20c01.
Since your change was applied there have been 117 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot closed this Jun 21, 2021
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jun 21, 2021
@openjdk
Copy link

openjdk bot commented Jun 21, 2021

@tschatzl Pushed as commit cd20c01.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@tschatzl tschatzl deleted the submit/8268458-young-evac-failure-verifygctype branch June 21, 2021 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-gc hotspot-gc-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants