On Monday 19 September 2011, zap foster wrote:
> How can the results be virtually identical? I would have thought the "false
> sharing" version would be significantly higher than the other, but they are
> nearly identical.
>
> Is there something I am doing wrong with the tool?
No.
You did not
I tried running the following example program across cachegrind to see metrics
that indicate cache line false-sharing. Here's the example:
#include
#include
#include
#include
#define MAX_TESTS10
#define MAX_THREADS 100
#define CACHELINE_SIZE_INTS \
(64/sizeof(int))
BOOST_STA