portable-atomic
portable-atomic copied to clipboard
Support atomic CAS on BPF targets
Another target that doesn't support atomic CAS in the standard library.
https://github.com/taiki-e/portable-atomic/blob/d547b60fe14f8a4b89f4a75391089b586773e1f6/tools/build.sh#L199
This LLVM test indicates that many of the 64-bit and 32-bit atomic operations are already supported.
Refs: https://www.kernel.org/doc/html/latest/bpf/instruction-set.html#atomic-operations
This will be resolved by https://github.com/rust-lang/rust/pull/105708.
https://github.com/rust-lang/rust/pull/105708 merged.
https://github.com/rust-lang/rust/pull/105708 is not actually working properly.