Skip to content

bpf: Support atomic CAS#78

Draft
taiki-e wants to merge 1 commit intomainfrom
bpf-cas
Draft

bpf: Support atomic CAS#78
taiki-e wants to merge 1 commit intomainfrom
bpf-cas

Conversation

@taiki-e
Copy link
Copy Markdown
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