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 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
@taiki-e taiki-e force-pushed the main branch 10 times, most recently from 7494fc0 to e6fd074 Compare December 30, 2025 11:29
@taiki-e taiki-e force-pushed the main branch 5 times, most recently from a91d29f to d6c284d Compare January 8, 2026 17:23
@taiki-e taiki-e force-pushed the main branch 3 times, most recently from 2713bb5 to 8fc9313 Compare January 15, 2026 10:31
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