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-staging] TypeDescriptor threading fixes #101306

Merged

Conversation

steveharter
Copy link
Member

@steveharter steveharter commented Apr 19, 2024

Backport of #96846 and #97236 to release/6.0-staging.

The 8.0 backport is at #101305.

Customer Impact

See issues #92394 and #30024.

There is a threading issue corrupts internal caches, causing various TypeDescriptor methods to return incorrect information. The most likely time it would occur is during warm-up when there are several concurrent threads using various TypeDescriptor static methods.

Technical details

The locking behavior was not correct for multiple threads. Various analysis at:

Regression

No, it appears to have existed in .NET Framework before being ported to .NET Core.

Testing

Previous PR attempts added tests which were ported. Additional tests added for deadlock cases. In addition, the fixes were successfully applied to a .NET Framework local build which was tested by an external customer reporting these issues. It is expected to be ported to .NET framework as well.

The fixes were in v9.0 around 4 months ago with no issues reported.

Risk

Low, as noted there have been no regressions notes in the last 4 months.

Copy link
Contributor

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

@steveharter steveharter added the Servicing-consider Issue for next servicing release review label Apr 23, 2024
@steveharter steveharter added this to the 6.0.x milestone Apr 23, 2024
@rbhanda rbhanda modified the milestones: 6.0.x, 6.0.31 Apr 23, 2024
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Apr 23, 2024
@steveharter
Copy link
Member Author

CI Failures are known, and also occurring with other PRs such as https://github.com/dotnet/runtime/runs/23919179513

System.IO.Net5Compat.Tests.WorkItemExecution
System.IO.Tests.WorkItemExecution

The Helix Work Item failed. Often this is due to a test crash or infrastructure failure. See the Helix Test Logs tab in the Results page of Azure DevOps.

@steveharter
Copy link
Member Author

/ba-g Build Analysis does not show actionable failures; only shows 2 known test errors

@steveharter steveharter merged commit edcb9df into dotnet:release/6.0-staging Apr 25, 2024
124 of 130 checks passed
@steveharter steveharter deleted the TypeConverterThreading60 branch April 25, 2024 14:43
@github-actions github-actions bot locked and limited conversation to collaborators May 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants