diff --git a/folly/synchronization/LifoSem.h b/folly/synchronization/LifoSem.h index bbb56f1d3f3..8041433dfbd 100644 --- a/folly/synchronization/LifoSem.h +++ b/folly/synchronization/LifoSem.h @@ -24,12 +24,12 @@ #include #include -#include #include #include #include #include #include +#include #include #include #include @@ -367,7 +367,7 @@ template class Atom = std::atomic> struct LifoSemBase { /// Constructor constexpr explicit LifoSemBase(uint32_t initialValue = 0) - : head_(LifoSemHead::fresh(initialValue)) {} + : head_(in_place, LifoSemHead::fresh(initialValue)) {} LifoSemBase(LifoSemBase const&) = delete; LifoSemBase& operator=(LifoSemBase const&) = delete; @@ -656,7 +656,7 @@ struct LifoSemBase { } private: - CachelinePadded> head_; + cacheline_aligned> head_; static LifoSemNode& idxToNode(uint32_t idx) { auto raw = &LifoSemRawNode::pool()[idx];