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

Synchronize on compare_exchange failure in create_hashtable #210

Merged
merged 1 commit into from
Jan 22, 2020
Merged

Synchronize on compare_exchange failure in create_hashtable #210

merged 1 commit into from
Jan 22, 2020

Conversation

tmiasko
Copy link

@tmiasko tmiasko commented Jan 22, 2020

No description provided.

@Amanieu
Copy link
Owner

Amanieu commented Jan 22, 2020

Nice catch!

bors r+

bors bot added a commit that referenced this pull request Jan 22, 2020
210: Synchronize on compare_exchange failure in create_hashtable r=Amanieu a=tmiasko



Co-authored-by: Tomasz Miąsko <tomasz.miasko@gmail.com>
@tmiasko
Copy link
Author

tmiasko commented Jan 22, 2020

Somewhat as a side note: in C11/C++11 one could arguably use release as a success
ordering and acquire as a failure ordering, while Rust currently requires the
failure ordering to be equivalent or weaker. The C++20, lifts restrictions on
failure ordering completely http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0418r2.html.

@Amanieu
Copy link
Owner

Amanieu commented Jan 22, 2020

Could you open an issue on the Rust repo for lifting the restrictions on compare_exchange?

@bors
Copy link
Contributor

bors bot commented Jan 22, 2020

@bors bors bot merged commit a02c309 into Amanieu:master Jan 22, 2020
@tmiasko tmiasko deleted the sync branch January 22, 2020 17:34
@tmiasko
Copy link
Author

tmiasko commented Jan 22, 2020

rust-lang/rust#68464

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.

None yet

2 participants