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

@taiki-e taiki-e force-pushed the main branch 2 times, most recently from 3076fb9 to 79adf66 Compare September 8, 2024 07:03
@taiki-e taiki-e force-pushed the main branch 6 times, most recently from 023c526 to fc902d0 Compare September 20, 2024 12:53
@taiki-e taiki-e force-pushed the main branch 10 times, most recently from 51d5755 to a68d11b Compare October 4, 2024 21:07
@taiki-e taiki-e force-pushed the main branch 5 times, most recently from 6035b03 to 33b6cb5 Compare October 19, 2024 11:51
@taiki-e taiki-e force-pushed the main branch 3 times, most recently from c49dd72 to b4a720e Compare October 27, 2024 05:30
@taiki-e taiki-e force-pushed the main branch 3 times, most recently from 8813362 to 33ab2c1 Compare November 23, 2024 17:40
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