Boost C++ Libraries: Ticket #13130: BOOST_LOCKFREE_CACHELINE_BYTES value is incorrect on s390x https://svn.boost.org/trac10/ticket/13130 <p> The file include/boost/lockfree/detail/prefix.hpp contains the following code snippet: </p> <pre class="wiki">// PowerPC caches support 128-byte cache lines. #if defined(powerpc) || defined(__powerpc__) || defined(__ppc__) #define BOOST_LOCKFREE_CACHELINE_BYTES 128 #else #define BOOST_LOCKFREE_CACHELINE_BYTES 64 #endif </pre><p> This sets the cache line size on s390x to 64 bytes. This is incorrect, the correct size is 256 bytes. To fix we just need to add an extra #elif checking for the <span class="underline">s390</span>/ <span class="underline">s390x</span> compiler-defined macros. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13130 Trac 1.4.3 mike.munday@… Fri, 21 Jul 2017 16:44:44 GMT <link>https://svn.boost.org/trac10/ticket/13130#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13130#comment:1</guid> <description> <p> Sorry, I messed up the formatting of the compiler-defined macros above, they are <code>__s390__</code> and <code>__s390x__</code>. </p> </description> <category>Ticket</category> </item> <item> <author>mike.munday@…</author> <pubDate>Wed, 20 Sep 2017 11:56:13 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13130#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13130#comment:2</guid> <description> <p> This has been fixed by 6bee2bf if someone wants to close this. </p> </description> <category>Ticket</category> </item> </channel> </rss>