Skip to content

chore: forward port 1.43.x#7241

Merged
carllerche merged 8 commits intotokio-1.44.xfrom
forward-port-1.43.x
Apr 5, 2025
Merged

chore: forward port 1.43.x#7241
carllerche merged 8 commits intotokio-1.44.xfrom
forward-port-1.43.x

Conversation

@carllerche
Copy link
Copy Markdown
Member

Forward ports #7232 to 1.44.x

Darksonn and others added 8 commits July 22, 2024 23:22
The broadcast channel does not require values to implement `Sync` yet it calls
the `.clone()` method without synchronizing. This is unsound logic. This patch
adds per-value synchronization on receive to handle this case. It is unlikely
any usage of the broadcast channel is currently at risk of the unsoundeness
issue as it requires accessing a `!Sync` type during `.clone()`, which would be
very unusual when using the broadcast channel.
@github-actions github-actions Bot added the R-loom-sync Run loom sync tests on this PR label Apr 4, 2025
Copy link
Copy Markdown
Contributor

@hds hds left a comment

Choose a reason for hiding this comment

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

Looks good!

@carllerche carllerche merged commit ec4b1d7 into tokio-1.44.x Apr 5, 2025
80 checks passed
@carllerche carllerche deleted the forward-port-1.43.x branch April 5, 2025 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

R-loom-sync Run loom sync tests on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants