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

Relax the memory ordering on the implementation of UnsafeArc #12962

Closed
wants to merge 1 commit into from

Conversation

gereeter
Copy link
Contributor

The implementation of UnsafeArc was unnecessarily using stricter memory ordering than it needed to, producing worse performance in high contention.

I'm not exactly sure how to test or benchmark this change, as it should only show up rarely on a weakly ordered CPU while in contention.

@alexcrichton
Copy link
Member

I'm comfortable with the sources that you've cited, even if I'm not personally comfortable enough with the atomics themselves. Thanks for this!

@bors bors closed this in 87e72c3 Mar 19, 2014
@gereeter gereeter deleted the relaxed-arc branch December 17, 2015 01:29
lnicola pushed a commit to lnicola/rust that referenced this pull request Aug 16, 2022
…r=Veykril

Parse range patterns in struct and slice without trailing comma

Resolves rust-lang#12935

This patch includes the support for range patterns in slices, which is unstable (tracked in rust-lang#67264). If it's not desired I can remove it.
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.

5 participants