[Boost-bugs] [Boost C++ Libraries] #13130: BOOST_LOCKFREE_CACHELINE_BYTES value is incorrect on s390x

Subject: [Boost-bugs] [Boost C++ Libraries] #13130: BOOST_LOCKFREE_CACHELINE_BYTES value is incorrect on s390x
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-07-21 16:40:28


#13130: BOOST_LOCKFREE_CACHELINE_BYTES value is incorrect on s390x
------------------------------+--------------------------
 Reporter: mike.munday@… | Owner: timblechmann
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: lockfree
  Version: Boost 1.63.0 | Severity: Optimization
 Keywords: |
------------------------------+--------------------------
 The file include/boost/lockfree/detail/prefix.hpp contains the following
 code snippet:

 {{{
 // 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
 }}}

 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 __s390__/ __s390x__ compiler-defined macros.

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13130>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-07-21 16:43:43 UTC