Skip to content

Commit

Permalink
Fix AtomicCell is_lock_free test on armv7
Browse files Browse the repository at this point in the history
Fixes #918
  • Loading branch information
taiki-e committed Feb 28, 2023
1 parent 34dd9d5 commit b13bdb0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crossbeam-utils/tests/atomic_cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ fn is_lock_free() {
// of `AtomicU64` is `8`, so `AtomicCell<u64>` is not lock-free.
assert_eq!(
AtomicCell::<u64>::is_lock_free(),
cfg!(not(crossbeam_no_atomic_64))
&& cfg!(any(
target_pointer_width = "64",
target_pointer_width = "128"
))
cfg!(not(crossbeam_no_atomic_64)) && std::mem::align_of::<u64>() == 8
);
assert_eq!(mem::size_of::<U64Align8>(), 8);
assert_eq!(mem::align_of::<U64Align8>(), 8);
Expand Down

0 comments on commit b13bdb0

Please sign in to comment.