Skip to content
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

8271124: CTW tests crashed with assert(is_valid_method(o)) failed: should be valid jmethodid #5990

Closed
wants to merge 2 commits into from

Conversation

coleenp
Copy link
Contributor

@coleenp coleenp commented Oct 18, 2021

Add a lock in VirtualSpaceList::contains to protect the virtual space list for Metaspace::contains. See CR for more details.
Tested with tier2 linux-aarch64-debug where the failure happened, and tier1-3 linux-x64-debug,linux-x64,windows-x64-debug in progress (almost done but it's being slow today).


Progress

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

Issue

  • JDK-8271124: CTW tests crashed with assert(is_valid_method(o)) failed: should be valid jmethodid

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 5990

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

Using diff file

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

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 18, 2021

👋 Welcome back coleenp! 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 openjdk bot added the rfr Pull request is ready for review label Oct 18, 2021
@openjdk
Copy link

openjdk bot commented Oct 18, 2021

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

  • hotspot-runtime

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-runtime hotspot-runtime-dev@openjdk.org label Oct 18, 2021
@mlbridge
Copy link

mlbridge bot commented Oct 18, 2021

Webrevs

@coleenp
Copy link
Contributor Author

coleenp commented Oct 18, 2021

/label remove hotspot-runtime
/label add hotspot

@openjdk openjdk bot removed the hotspot-runtime hotspot-runtime-dev@openjdk.org label Oct 18, 2021
@openjdk
Copy link

openjdk bot commented Oct 18, 2021

@coleenp
The hotspot-runtime label was successfully removed.

@openjdk openjdk bot added the hotspot hotspot-dev@openjdk.org label Oct 18, 2021
@openjdk
Copy link

openjdk bot commented Oct 18, 2021

@coleenp
The hotspot label was successfully added.

@coleenp coleenp closed this Oct 18, 2021
@coleenp
Copy link
Contributor Author

coleenp commented Oct 18, 2021

Shenandoah test gets a lock inversion with the introduction of the Metaspace_lock.

Copy link
Member

@iklam iklam left a comment

Choose a reason for hiding this comment

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

LGTM.

I looked at the other functions in this class, and it seems like VirtualSpaceList::is_full() has a similar problem. I filed https://bugs.openjdk.java.net/browse/JDK-8275440 to remove that function.

Other functions like reserved_words(), committed_words() and num_nodes() also seem suspicious. @tstuefe can you take a look?

@coleenp coleenp reopened this Oct 18, 2021
@coleenp
Copy link
Contributor Author

coleenp commented Oct 18, 2021

I'm reopening for more comments. Shenandoah gets:

 assert(false) failed: Attempting to acquire lock Metaspace_lock/nosafepoint-3 out of order with lock StackWatermark_lock/stackwatermark -- possible deadlock

found via github actions.

@openjdk
Copy link

openjdk bot commented Oct 18, 2021

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

8271124: CTW tests crashed with assert(is_valid_method(o)) failed: should be valid jmethodid

Reviewed-by: iklam

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 no new commits pushed to the master branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential 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 Oct 18, 2021
@coleenp
Copy link
Contributor Author

coleenp commented Oct 18, 2021

Reclosing this PR.

@coleenp coleenp closed this Oct 18, 2021
@tstuefe
Copy link
Member

tstuefe commented Oct 19, 2021

LGTM.

I looked at the other functions in this class, and it seems like VirtualSpaceList::is_full() has a similar problem. I filed https://bugs.openjdk.java.net/browse/JDK-8275440 to remove that function.

Other functions like reserved_words(), committed_words() and num_nodes() also seem suspicious. @tstuefe can you take a look?

I'll take a look.

@coleenp coleenp deleted the jmethodid branch November 17, 2021 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot hotspot-dev@openjdk.org 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