Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid AO_stack_t to cross CPU cache line boundary
(a cherry-pick of commit ed712f7 from 'release-7_6') Issue #45 (libatomic_ops). Enforce proper alignment of AO_stack_t.AO_ptr to avoid the structure value to cross the CPU cache line boundary. A workaround for almost-lock-free push/pop test failures on aarch64, at least. * src/atomic_ops_stack.h [AO_USE_ALMOST_LOCK_FREE && !AO_STACK_ATTR_ALLIGNED] (AO_STACK_ATTR_ALLIGNED): Define. * src/atomic_ops_stack.h [AO_USE_ALMOST_LOCK_FREE] (AO_stack_t.AO_ptr): Add AO_STACK_ATTR_ALLIGNED attribute.
- Loading branch information