-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Guarantee 8 bytes of alignment in Thread::into_raw #143859
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
base: master
Are you sure you want to change the base?
Conversation
r? libs-api, this adds an alignment guarantee to the unstable |
This comment has been minimized.
This comment has been minimized.
ping @rust-lang/libs-api, as this provides a new guarantee, arguably needing FCP (and at a minimum team involvement) |
@rfcbot fcp merge |
Team member @dtolnay has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
When using
AtomicPtr
for synchronization it's incredibly useful when you've got a couple bits you can stuff metadata in. By guaranteeing thatThread
'sInner
struct is aligned to 8 bytes everyone can use the bottom 3 bits to signal other things, such as a critical section, etc.This guarantee is thus very useful and costs us nothing.