portable-atomic icon indicating copy to clipboard operation
portable-atomic copied to clipboard

Support atomic CAS on BPF targets

Open taiki-e opened this issue 3 years ago • 3 comments

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

taiki-e avatar Aug 09 '22 16:08 taiki-e

This will be resolved by https://github.com/rust-lang/rust/pull/105708.

taiki-e avatar Dec 18 '22 04:12 taiki-e

https://github.com/rust-lang/rust/pull/105708 merged.

taiki-e avatar Jan 10 '23 06:01 taiki-e

https://github.com/rust-lang/rust/pull/105708 is not actually working properly.

taiki-e avatar Jan 22 '23 15:01 taiki-e