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

Fix race between block initialization and receiver disconnection #1084

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

ibraheemdev
Copy link
Contributor

@ibraheemdev ibraheemdev commented Feb 25, 2024

Reported in rust-lang/rust#121582. This fixes a race that can occur if a sender installs the first block right after all receivers have disconnected and checked for any existing messages, causing a memory leak.

Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

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

Thanks!

@taiki-e taiki-e merged commit c9af259 into crossbeam-rs:master Feb 26, 2024
23 checks passed
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 26, 2024
Fix race between block initialization and receiver disconnection

Port of crossbeam-rs/crossbeam#1084. Closes rust-lang#121582.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants