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

C#: Properly dispose diagnostic writer objects #16036

Merged
merged 4 commits into from
Apr 4, 2024

Conversation

tamasvajk
Copy link
Contributor

No description provided.

@tamasvajk tamasvajk force-pushed the autobuilder/disposable branch from 410b1af to dadd4b9 Compare March 25, 2024 12:49
@tamasvajk tamasvajk marked this pull request as ready for review March 25, 2024 13:25
@tamasvajk tamasvajk requested review from a team as code owners March 25, 2024 13:25
@michaelnebel
Copy link
Contributor

Also, very good catch. How did you discover this?

@tamasvajk
Copy link
Contributor Author

Also, very good catch. How did you discover this?

I was checking for #16021 how we write diagnostic messages, and I found that we have a disposable-like field. Also, I think it was only working before, because we call .Flush() explicitly in DiagnosticsStream.AddEntry.

@tamasvajk tamasvajk force-pushed the autobuilder/disposable branch from dadd4b9 to fbec197 Compare April 3, 2024 08:13
@tamasvajk tamasvajk requested a review from a team as a code owner April 3, 2024 08:13
Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

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

LGTM!

@tamasvajk tamasvajk merged commit 7beb737 into github:main Apr 4, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants