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

Use IsManagedType for determining which state machine hoisted locals to clear #75841

Merged
merged 6 commits into from
Nov 14, 2024

Conversation

jcouv
Copy link
Member

@jcouv jcouv commented Nov 9, 2024

The logic previously used MightContainReferences which is a crude approximation of IsManagedType.
This is in preparation for work on #75666
Relates to recent change (#75426) which is also about conditionally clearing state in managed types to let go of any unnecessary references.

Look at the diff between commit 1 (baseline) and commit 2 (code change) to see the expectedOutput and IL changes.

@jcouv jcouv self-assigned this Nov 9, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Nov 9, 2024
@jcouv jcouv marked this pull request as ready for review November 11, 2024 21:40
@jcouv jcouv requested a review from a team as a code owner November 11, 2024 21:40
Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (commit 5)

@jcouv
Copy link
Member Author

jcouv commented Nov 12, 2024

@dotnet/roslyn-compiler for second review. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants