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

8255595: delay_to_keep_mmu passes wrong arguments to Monitor wait #934

Closed
wants to merge 2 commits into from

Conversation

kimbarrett
Copy link

@kimbarrett kimbarrett commented Oct 29, 2020

Please review this trivial fix of the second argument in a call to MonitorLocker::wait. Because the locker is constructed as no-safepoint-checking, the improper second argument is ignored rather than possibly going into an unexpected state.

/summary Remove improper wait argument.


Progress

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

Issue

  • JDK-8255595: delay_to_keep_mmu passes wrong arguments to Monitor wait

Reviewers

Download

$ git fetch https://git.openjdk.java.net/jdk pull/934/head:pull/934
$ git checkout pull/934

@kimbarrett kimbarrett changed the title fix call to wait 8255595: delay_to_keep_mmu passes wrong arguments to Monitor wait Oct 29, 2020
@bridgekeeper
Copy link

bridgekeeper bot commented Oct 29, 2020

👋 Welcome back kbarrett! 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.

@kimbarrett kimbarrett marked this pull request as ready for review October 29, 2020 13:58
@openjdk
Copy link

openjdk bot commented Oct 29, 2020

@kimbarrett Setting summary to Remove improper wait argument.

@openjdk openjdk bot added the rfr Pull request is ready for review label Oct 29, 2020
@kimbarrett
Copy link
Author

/label add hotspot-gc

@openjdk openjdk bot added the hotspot-gc hotspot-gc-dev@openjdk.org label Oct 29, 2020
@openjdk
Copy link

openjdk bot commented Oct 29, 2020

@kimbarrett
The hotspot-gc label was successfully added.

@mlbridge
Copy link

mlbridge bot commented Oct 29, 2020

Webrevs

Copy link
Contributor

@kstefanj kstefanj 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!

@openjdk
Copy link

openjdk bot commented Oct 29, 2020

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

8255595: delay_to_keep_mmu passes wrong arguments to Monitor wait

Remove improper wait argument.

Reviewed-by: sjohanss, tschatzl, ayang

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 29, 2020
Copy link
Contributor

@tschatzl tschatzl left a comment

Choose a reason for hiding this comment

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

Lgtm and trivial.

@albertnetymk
Copy link
Member

I wonder if it's feasible and/or worthwhile to use clang-tidy (or sth similar) to detect this kind of error in existing code and prevent it from happening again in new code.

@kimbarrett
Copy link
Author

I wonder if it's feasible and/or worthwhile to use clang-tidy (or sth similar) to detect this kind of error in existing code and prevent it from happening again in new code.

See https://bugs.openjdk.java.net/browse/JDK-8255596

@kimbarrett
Copy link
Author

/integrate

@openjdk openjdk bot closed this Oct 30, 2020
@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 Oct 30, 2020
@kimbarrett kimbarrett deleted the bad_wait branch October 30, 2020 04:25
@openjdk
Copy link

openjdk bot commented Oct 30, 2020

@kimbarrett Pushed as commit 379ba80.

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

@albertnetymk
Copy link
Member

See https://bugs.openjdk.java.net/browse/JDK-8255596

Thank you, Kim.

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.

4 participants