Skip to content

Replace rust_atomic_increment/decrement and rust_compare_and_swap_ptr with intrinsics. #3827

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

Merged
merged 3 commits into from
Oct 23, 2012

Conversation

luqmana
Copy link
Member

@luqmana luqmana commented Oct 22, 2012

Issue #3527

Added some new intrinsics: (compare and exchange)

atomic_cxchg
atomic_cxchg_acq
atomic_cxchg_rel

Though I had to basically copy/paste two functions since the new intrinsic wouldn't be available in stage0 so rust_compare_and_swap_ptr is still used in libcore for stage0.

@brson
Copy link
Contributor

brson commented Oct 22, 2012

make check-stage2-core segfaults for me in unwrap_exclusive on x86_64 linux

@brson brson merged commit ed447a7 into rust-lang:incoming Oct 23, 2012
@brson
Copy link
Contributor

brson commented Oct 23, 2012

Thanks!

RalfJung pushed a commit to RalfJung/rust that referenced this pull request Aug 30, 2024
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.

2 participants