-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
8325437: Safepoint polling in monitor deflation can cause massive logs #17752
8325437: Safepoint polling in monitor deflation can cause massive logs #17752
Conversation
👋 Welcome back stefank! A progress list of the required criteria for merging this PR into |
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm.
@stefank 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:
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 ➡️ To integrate this PR with the above commit message to the |
Tier1-3 passes on Linux. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I forgot to finish my review yesterday.
This looks fine. This WARNING mesg was from an era when I was trying to
make sure that idle ObjectMonitors were cleaned up as much as possible.
While that was a useful exercise when we were hunting down async monitor
deflation bugs, we're no longer trying to religiously make sure that idle
ObjectMonitors are deflated. Instead we're focused on trying to avoid inflation
unless absolutely necessary.
Thanks for reviewing! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch. Looks good!
Maybe you want to merge from latest master to get clean GHA run. It should contain the GHA fix: 3c91b59 |
…eflation_excessive_logging
Thanks, Aleksey for reviewing. GHA passes, so I'm integrating now. |
Going to push as commit 52d4976.
Your commit was automatically rebased without conflicts. |
If
-Xlog:monitorinflation=debug
is used andObjectSynchronizer::chk_in_use_entry
is called while monitor deflation is safepoint polled/blocked, we can have deflated monitors on the in-use list and we can get a huge number of lines stating:This comes from the following code:
There are tentative plans to rewrite the monitor deflation to unlink deflated monitors from the in-use list before the safepoint polls, but I'd like to suggest that we make an interim patch that deletes this warning.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/17752/head:pull/17752
$ git checkout pull/17752
Update a local copy of the PR:
$ git checkout pull/17752
$ git pull https://git.openjdk.org/jdk.git pull/17752/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 17752
View PR using the GUI difftool:
$ git pr show -t 17752
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/17752.diff
Webrev
Link to Webrev Comment