Boost logo

Boost :

Subject: Re: [boost] [atomic, x86] need another pair of eyes
From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2012-12-19 11:51:16


On Wed, Dec 19, 2012 at 6:34 AM, Tim Blechmann <tim_at_[hidden]> wrote:

> hi andrey and peter,
>
> to be more specific: of the test machines at sandia sometimes has test
> failures for boost.lockfree, which i cannot reproduce on my machine. the
> algorithm in question (the spsc_queue) only makes use of atomic reads
> and writes and only requires two memory barriers. the sandia machine is
> a 4 cpu, 8 core/cpu machine, while my machines are all single-cpu
> multi-core.
>
>
...

> imo, the platform_fence_before/after is not necessary ...
>
> tim
>

If there is a bug, _removing_ barriers isn't going to solve it. Or do I
misunderstand the situation?
(I agree that the barriers may be unnecessary, but I don't see how it helps
with the test failures.)

Tony


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk