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

[runtime] Fix GC problems in create_cattr_named()/typed() #39894

Merged
merged 2 commits into from
Jul 27, 2020

Conversation

vargaz
Copy link
Contributor

@vargaz vargaz commented Jul 24, 2020

Backport of #39774 and #39856 to the release/5.0-preview8 branch.

Fixes #39473 (Tests failed on WASM with NRE in CustomAttributeTypedArgument.CanonicalizeValue)

Description

Fixes an issue where the Mono runtime/GC wasn't correctly tracking newly created objects when creating a custom attribute type. This resulted in rare and random NullReferenceException's during the dotnet/runtime libraries tests. We also got one report from Blazor that looks like the same thing.

Customer Impact

Random NullReferenceException when creating custom attribute instances.

Risk

Low, we ran several libraries tests in a loop for multiple hours to confirm the issue was fixed.

@ghost
Copy link

ghost commented Jul 24, 2020

Tagging subscribers to this area: @dotnet/gc
See info in area-owners.md if you want to be subscribed.

@akoeplinger akoeplinger added the Servicing-consider Issue for next servicing release review label Jul 24, 2020
@ghost
Copy link

ghost commented Jul 24, 2020

Tagging subscribers to this area: @BrzVlad
See info in area-owners.md if you want to be subscribed.

@akoeplinger
Copy link
Member

This was approved by .NET Core Tactics, merging.

@akoeplinger akoeplinger merged commit 0f42d39 into dotnet:release/5.0-preview8 Jul 27, 2020
@danmoseley
Copy link
Member

@Anipik will this automatically cause a new build to flow?

@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-GC-mono Servicing-consider Issue for next servicing release review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants