From ed076facc4687350246ae7028d3c008f775d40b4 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Fri, 17 Mar 2023 14:15:10 -0700 Subject: [PATCH] Stabilize ABI of cacheline_protected by hardcoding its alignment to 64 --- .../unordered/detail/foa/concurrent_table.hpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index 2b19eb59..1e5aaa97 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -37,22 +37,7 @@ namespace detail{ namespace foa{ template -struct - -#if defined(__cpp_lib_hardware_interference_size) -#if defined(BOOST_GCC) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Winterference-size" -#endif -alignas(std::hardware_destructive_interference_size) -#if defined(BOOST_GCC) -#pragma GCC diagnostic pop -#endif -#else -alignas(64) -#endif - -cacheline_protected:T +struct alignas(64) cacheline_protected:T { using T::T; };