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

bpf: Support atomic CAS #78

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

bpf: Support atomic CAS #78

wants to merge 1 commit into from

Conversation

taiki-e
Copy link
Owner

@taiki-e taiki-e commented Feb 23, 2023

Implement lock-based fallback using swap/load/store when the fallback feature is enabled because CAS is unavailable. This is not great, but if the upstream bug that causes errors when using CAS (rust-lang/rust#106795 (comment)) is fixed in the future, we can implement {8,16,32,64}-bit atomic using 64-bit CAS.

Closes #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-bpf Target: BPF
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support atomic CAS on BPF targets
1 participant