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

[release/6.0] Use custom error message when running out of syncblocks #60592

Merged
merged 2 commits into from
Oct 19, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 18, 2021

Backport of #60013 to release/6.0

/cc @jkotas

Customer Impact

Improves diagnosability of OutOfMemory exception occurring with a plenty of free memory available in certain situation.

For historic reasons, the runtime throws OutOfMemoryException when it reaches implementation limitations for maximum number of syncblocks. This special OutOfMemoryException is hard to diagnose since it is indistinguishable from ordinary OutOfMemory exception. In #49215, it took more than 6 months to root cause this situation. It is likely that other customers are running into same issue, but they do not have patience to work for that long to diagnose it. The improved error message should make it possible to diagnose the problem within minutes.

Testing

Ad-hoc testing of the effected path.

Risk

Low. Change in error message only.

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@jkotas jkotas requested a review from mangod9 October 18, 2021 23:22
Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

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

Approved. We should consider this for .NET 6

@jeffschwMSFT jeffschwMSFT added Servicing-approved Approved for servicing release area-VM-coreclr labels Oct 19, 2021
@jeffschwMSFT jeffschwMSFT added this to the 6.0.0 milestone Oct 19, 2021
@Anipik Anipik merged commit 0879ce8 into release/6.0 Oct 19, 2021
@jkotas jkotas deleted the backport/pr-60013-to-release/6.0 branch October 19, 2021 17:05
@ghost ghost locked as resolved and limited conversation to collaborators Nov 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-VM-coreclr Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants