-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Relax orderings in std::sync::once #44331
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Thanks for the PR! This has actually been proposed before and my own personal opinions at least haven't changed much. Mind reading over some of the discussion there and posting your thoughts on it? |
@alexcrichton Thank you! I haven't notice that there was a closed PR on this issue. I will discuss further in that issue. |
Hi @jeehoonkang @alexcrichton, just wondering what the status of this PR is after the (brief) exchange on #31650 - is this waiting on review, or are we looking for a bit more justifying background? |
@jeehoonkang do you think |
@aidanhs @alexcrichton The current implementation with That said, I kinda agree with the conclusion made in #31650 that we keep I agree to close this PR. Maybe later we can reopen, once someone clearly explains why |
Ok sounds good to me, thanks regardless @jeehoonkang ! |
Currently, in
std::sync::once
, every access to the shared objects areSeqCst
, while it doesn't need to be. I relaxed orderings toAcquire
,Release
, andAcqRel
.r? @alexcrichton