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

Thread safety: Remove race in RingbufferLogger #6881

Merged
merged 2 commits into from
Mar 4, 2025

Conversation

eddyashton
Copy link
Member

Writers should not be shared between threads, so make RingbufferLogger use a thread_local Writer.

I don't have the stack, but this was also found by TSAN in #6616.

@eddyashton eddyashton requested a review from a team as a code owner March 4, 2025 16:10
@achamayou achamayou enabled auto-merge March 4, 2025 16:18
@achamayou achamayou added this pull request to the merge queue Mar 4, 2025
Merged via the queue into microsoft:main with commit 529ce0a Mar 4, 2025
21 checks passed
@achamayou achamayou deleted the tsan_ringbufferlogger branch March 4, 2025 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants