Skip to content

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

Merged
akoeplinger merged 2 commits into
dotnet:release/5.0-preview8from
vargaz:cattr-fix-preview8
Jul 27, 2020
Merged

akoeplinger merged 2 commits into
dotnet:release/5.0-preview8from
vargaz:cattr-fix-preview8

Conversation

@vargaz

@vargaz vargaz commented Jul 24, 2020 •

Copy link
Copy Markdown
Contributor

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

ghost commented Jul 24, 2020

Copy link
Copy Markdown

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

ghost commented Jul 24, 2020

Copy link
Copy Markdown

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

@akoeplinger

Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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