Skip to content

metrics-util: fix soundness issue with AtomicBucket<T> #191

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

Merged
merged 1 commit into from
Apr 8, 2021

Conversation

tobz
Copy link
Member

@tobz tobz commented Apr 8, 2021

As evidenced by #190, the current Block<T> unconditionally implements Sync/Send, which allows invariants of T to potentially be invalidated.

This PR properly constrains the Sync/Send implementations to T: Sync and T: Send respectively.

@tobz tobz linked an issue Apr 8, 2021 that may be closed by this pull request
@tobz tobz merged commit 7b896a2 into main Apr 8, 2021
mnpw pushed a commit to mnpw/metrics that referenced this pull request Mar 8, 2024
…soundness

metrics-util: fix soundness issue with AtomicBucket<T>
@tobz tobz deleted the fix_atomicbucket_unsoundness branch January 6, 2025 15:21
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.

AtomicBucket<T> unconditionally implements Send/Sync
1 participant