Skip to content

Conversation

@alexey-zakharov
Copy link
Contributor

@alexey-zakharov alexey-zakharov commented May 30, 2024

Fixes Issue

main PR #102797

Description

Fix crash in ThreadLocalBlock::FreeTLM code on thread exit which happens during Assembly unloading when Assembly contains a class with a ThreadStatic variable.

(cherry picked from commit eb84218)

Customer Impact

Crash in scenarios when AssemblyLoadContext is unloaded and one of assemblies has a ThreadStatic variable defined.

Regression

N/A

Testing

Local testing

Risk

Potential performance impact of increasing COOP scope when exiting thread.

Package authoring signed off?

IMPORTANT: If this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

…ollectible LoaderAllocators

(cherry picked from commit eb84218)
@ghost ghost added the area-VM-coreclr label May 30, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label May 30, 2024
@dotnet-policy-service
Copy link
Contributor

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

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.

lgtm. we will take for consideration in 8.0.x

@jkotas jkotas added the Servicing-approved Approved for servicing release label May 30, 2024
@jkotas jkotas merged commit 3516014 into dotnet:release/8.0-staging May 30, 2024
@alexey-zakharov alexey-zakharov deleted the backport/pr-102797-to-release branch May 31, 2024 08:19
@github-actions github-actions bot locked and limited conversation to collaborators Jun 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-VM-coreclr community-contribution Indicates that the PR has been added by a community member Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants