X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Ftest%2FCachelinePaddedTest.cpp;h=5890ba36f1949dbedc11625ac424bb3a069014c1;hb=5ad17f0715288d08e0db580c90b7bf8716ddfd99;hp=9c1253019bcb1123c45b0bf317d9f3cfa173e057;hpb=2177f05a16891e5dc381ccfa56d36ce91418aa09;p=folly.git diff --git a/folly/test/CachelinePaddedTest.cpp b/folly/test/CachelinePaddedTest.cpp index 9c125301..5890ba36 100644 --- a/folly/test/CachelinePaddedTest.cpp +++ b/folly/test/CachelinePaddedTest.cpp @@ -18,6 +18,7 @@ #include +#include #include using folly::CachelinePadded; @@ -26,7 +27,8 @@ static_assert( std::is_standard_layout>::value, "CachelinePadded must be standard-layout if T is."); -static constexpr int kCachelineSize = folly::CacheLocality::kFalseSharingRange; +static constexpr int kCachelineSize = + folly::hardware_destructive_interference_size; template struct alignas(alignment) SizedData {