Skip to content

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 3 times, most recently from a368389 to eeb0235 Compare February 24, 2025 12:09
@taiki-e taiki-e force-pushed the main branch 5 times, most recently from 77c5d0d to 813bf8f Compare March 7, 2025 16:12
@taiki-e taiki-e force-pushed the main branch 5 times, most recently from 2ef9f6c to e5eaaac Compare March 20, 2025 09:55
@taiki-e taiki-e force-pushed the main branch 3 times, most recently from 3acead0 to 6576213 Compare April 7, 2025 14:13
@taiki-e taiki-e force-pushed the main branch 2 times, most recently from d03a536 to 22d689c Compare June 5, 2025 20:47
@taiki-e taiki-e force-pushed the main branch 2 times, most recently from 95876ed to 3d959b6 Compare August 23, 2025 09:17
@taiki-e taiki-e force-pushed the main branch 4 times, most recently from c7a51b4 to d118cf0 Compare September 7, 2025 08:08
@taiki-e taiki-e force-pushed the main branch 4 times, most recently from 5c72bf2 to 8cc76fa Compare September 14, 2025 19:42
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