Skip to content

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

Merged
Anipik merged 2 commits into
release/6.0from
backport/pr-60013-to-release/6.0
Oct 19, 2021
Merged

[release/6.0] Use custom error message when running out of syncblocks#60592
Anipik merged 2 commits into
release/6.0from
backport/pr-60013-to-release/6.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Oct 18, 2021

Copy link
Copy Markdown
Contributor

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.

jkotasand others added 2 commits October 18, 2021 23:04
update message
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
@ghost

Copy link
Copy Markdown

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 mangod9October 18, 2021 23:22

@jeffschwMSFTjeffschwMSFT left a comment

Copy link
Copy Markdown
Member

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

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

Labels

area-VM-coreclrServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@jeffschwMSFT@mangod9@Anipik@jkotas