Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
/ jdk22u Public archive

8329528: G1 does not update TAMS correctly when dropping retained regions during Concurrent Start pause #145

Conversation

tschatzl
Copy link

@tschatzl tschatzl commented Apr 16, 2024

Hi all,

please review this backport for https://bugs.openjdk.org/browse/JDK-8329528; it applies cleanly apart from the hunk now in inline void HeapRegion::note_start_of_marking() - in jdk23 this method moved from there to concurrent marking code, although the change itself is the same.

This issue causes random crashes in G1. There is no workaround.

The change baked in jdk23 for a week or so, with no issues. Risk is little at this point as the patch is small and well understood, and there is a regression test.

Testing: gha, tier1-5


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8329528 needs maintainer approval

Issue

  • JDK-8329528: G1 does not update TAMS correctly when dropping retained regions during Concurrent Start pause (Bug - P1 - Approved) ⚠️ Issue is already resolved. Consider making this a "backport pull request" by setting the PR title to Backport <hash> with the hash of the original commit. See Backports.

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk22u.git pull/145/head:pull/145
$ git checkout pull/145

Update a local copy of the PR:
$ git checkout pull/145
$ git pull https://git.openjdk.org/jdk22u.git pull/145/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 145

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk22u/pull/145.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 16, 2024

👋 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 Apr 16, 2024

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

8329528: G1 does not update TAMS correctly when dropping retained regions during Concurrent Start pause

Reviewed-by: ayang, chegar

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 30 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 changed the title 8329528 8329528: G1 does not update TAMS correctly when dropping retained regions during Concurrent Start pause Apr 16, 2024
@tschatzl tschatzl marked this pull request as ready for review April 17, 2024 06:43
@openjdk openjdk bot added the rfr Pull request is ready for review label Apr 17, 2024
@mlbridge
Copy link

mlbridge bot commented Apr 17, 2024

Webrevs

Copy link
Member

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

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

LGTM

@openjdk
Copy link

openjdk bot commented Apr 17, 2024

⚠️ @tschatzl This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@openjdk openjdk bot added the approval label Apr 17, 2024
@tschatzl
Copy link
Author

Thanks @albertnetymk @ChrisHegarty for your reviews. Now applying for push approval.

@mlbridge
Copy link

mlbridge bot commented Apr 17, 2024

Mailing list message from Chris Hegarty on jdk-updates-dev:

Thanks for backporting this Thomas.

Given the severe nature of this bug and its impact, it renders JDK 22
and JDK 22u1 effectively useless (or even worse dangerous) to many
applications.

I would like to propose a 22.0.1.1 be considered to get this fix into
releases prior to 22u2.

-Chris.

On 17/04/2024 10:59, Chris Hegarty wrote:

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval labels Apr 21, 2024
@tschatzl
Copy link
Author

/integrate

@openjdk
Copy link

openjdk bot commented Apr 22, 2024

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

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Apr 22, 2024
@openjdk openjdk bot closed this Apr 22, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Apr 22, 2024
@openjdk
Copy link

openjdk bot commented Apr 22, 2024

@tschatzl Pushed as commit ac9ca97.

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

@tschatzl tschatzl deleted the submit/8329528-fix-tams-for-aged-out-pinned-candidates branch April 22, 2024 07:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants