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

Add mfence for ringchannel send #530

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

Coldwings
Copy link
Collaborator

RingChannel::send may have chance thatidler.load() happens before the push work done.

The acquire flags at load only make sured that load after idler.load() have to be happened after idler.load(), and last store action in push(x) keeps only sequence of store order only. Make it in seq_cst order to make sure load action must after push done.

@lihuiba lihuiba merged commit 8c41f96 into alibaba:main Jul 30, 2024
10 checks passed
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