-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 singlethreaded fence intrinsics. #24833
Conversation
These new intrinsics are comparable to `atomic_signal_fence` in C++, ensuring the compiler will not reorder memory accesses across the barrier, nor will it emit any machine instructions for it. Closes rust-lang#24118, implementing RFC 888.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nrc (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. 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 CONTRIBUTING.md for more information. |
r? @alexcrichton (I think he's best for looking at this) |
⌛ Testing commit 998c10d with merge ce8e936... |
💔 Test failed - auto-mac-64-opt |
Updated to current snapshot. |
⌛ Testing commit 94c9bde with merge de9bcf0... |
💔 Test failed - auto-linux-32-opt |
Closes rust-lang#24118, implementing RFC 888.
@bors: retry |
Are there any plans to eventually expose this outside of |
@jonhoo I believe not currently, but if you'd like to see these on stable a PR to place them in libstd would be most welcome! |
@alexcrichton Issue: #41091, PR: #41092 |
Closes #24118, implementing RFC 888.