Skip to content

8339725: Concurrent GC crashed due to GetMethodDeclaringClass #3646

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fandreuz
Copy link
Contributor

@fandreuz fandreuz commented Jun 16, 2025

Backport JDK-8339725. Applies almost cleanly. Fixes a crash in concurrent GC due to GetMethodDeclaringClass.

I ran the reproducer against jdk17, and I confirm that the crash applies to this version too.


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-8339725 needs maintainer approval

Issue

  • JDK-8339725: Concurrent GC crashed due to GetMethodDeclaringClass (Bug - P3 - Approved)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/3646/head:pull/3646
$ git checkout pull/3646

Update a local copy of the PR:
$ git checkout pull/3646
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/3646/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 3646

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/3646.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 16, 2025

👋 Welcome back fandreuz! 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 16, 2025

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

8339725: Concurrent GC crashed due to GetMethodDeclaringClass

Reviewed-by: phh

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 5 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.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@phohensee) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot changed the title Backport c91fa278fe17ab204beef0fcef1ada6dd0bc37bb 8339725: Concurrent GC crashed due to GetMethodDeclaringClass Jun 16, 2025
@openjdk
Copy link

openjdk bot commented Jun 16, 2025

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport rfr Pull request is ready for review labels Jun 16, 2025
@mlbridge
Copy link

mlbridge bot commented Jun 16, 2025

Webrevs

@openjdk
Copy link

openjdk bot commented Jun 16, 2025

⚠️ @fandreuz 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.

@fandreuz
Copy link
Contributor Author

/approval request Fixes JDK-8339725. Solves a crash during concurrent GC after a call to GetMethodDeclaringClass.

@openjdk
Copy link

openjdk bot commented Jun 16, 2025

@fandreuz
8339725: The approval request has been created successfully.

@openjdk openjdk bot added the approval label Jun 16, 2025
@GoeLin
Copy link
Member

GoeLin commented Jun 18, 2025

Hi @fandreuz
Please be a bit more elaborate in your fix-request comment. See also
https://wiki.openjdk.org/display/JDKUpdates/How+to+contribute+or+backport+a+fix

@fandreuz
Copy link
Contributor Author

/approval request Fixes JDK-8339725. Applies almost cleanly, except for small changes required in test makefiles. Passes tier 1 test suite. This backport solves a crash in concurrent GC after a call to GetMethodDeclaringClass. I confirm that the newly introduced test fails on master and is fixed with this backport.

@fandreuz
Copy link
Contributor Author

Hi @GoeLin, thank you for the feedback. I amended my approval request

@openjdk
Copy link

openjdk bot commented Jun 18, 2025

@fandreuz
8339725: The approval request has been updated successfully.

@GoeLin
Copy link
Member

GoeLin commented Jun 26, 2025

Hi @fandreuz
please enable Github actions and merge head to run the tests on this PR

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval labels Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport ready Pull request is ready to be integrated rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

3 participants