From ef22c7cc2de2112ed8da3ec0301750ed31b37587 Mon Sep 17 00:00:00 2001 From: khizmax Date: Sun, 23 Apr 2017 20:19:23 +0300 Subject: [PATCH] [signal-handled urcu]: add cacheline padding to URCU thread data --- cds/urcu/details/sh_decl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cds/urcu/details/sh_decl.h b/cds/urcu/details/sh_decl.h index 0d9371d3..dc293e0a 100644 --- a/cds/urcu/details/sh_decl.h +++ b/cds/urcu/details/sh_decl.h @@ -36,6 +36,7 @@ #ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED #include #include +#include #include @@ -50,6 +51,7 @@ namespace cds { namespace urcu { namespace details { atomics::atomic m_nAccessControl ; \ atomics::atomic m_bNeedMemBar ; \ thread_list_record< thread_data > m_list ; \ + char pad_[cds::c_nCacheLineSize]; \ thread_data(): m_nAccessControl(0), m_bNeedMemBar(false) {} \ explicit thread_data( OS::ThreadId owner ): m_nAccessControl(0), m_bNeedMemBar(false), m_list(owner) {} \ ~thread_data() {} \ -- 2.34.1