From: khizmax Date: Sun, 23 Apr 2017 17:19:23 +0000 (+0300) Subject: [signal-handled urcu]: add cacheline padding to URCU thread data X-Git-Tag: v2.3.0~62 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ef22c7cc2de2112ed8da3ec0301750ed31b37587;p=libcds.git [signal-handled urcu]: add cacheline padding to URCU thread data --- 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() {} \