Re: [LAD] Code reordering

From: Paul Davis <paul@email-addr-hidden>
Date: Fri Mar 04 2016 - 15:12:15 EET

kjetil, thanks for the patch.

however, the problem with fixing this problem has never been identifying
where to put the barriers, it has been adding them in a portable way.
__atomic_* are, as far as i can tell, gcc-specific. am i wrong about that?

On Fri, Mar 4, 2016 at 7:42 AM, Kjetil Matheussen <k.s.matheussen@email-addr-hidden>
wrote:

>
>
> On Fri, Mar 4, 2016 at 1:22 PM, Kjetil Matheussen <
> k.s.matheussen@email-addr-hidden> wrote:
>
>> You are right. There was even a discussion about how broken it was
>> in 2008, and it was fixed, at least in practice.
>>
>> http://lists.linuxaudio.org/pipermail/linux-audio-user/2008-October/056000.html
>>
>> Theoretically (and not unlikely also in practice), it seems to be still
>> broken.
>> This can also confirmed by compiling with -fsanitize=thread:
>>
>>
> I made a quick fix: http://folk.uio.no/ksvalast/ringbuffer.diff
>
> It can probably be optimized by relaxing some of the barrier
> strenghtnessness though,
> but it probably makes no practical difference in execution time.
> Perhaps apply this to jack, at least to avoid uncertainty about whether it
> will really
> always work?
>
>
> _______________________________________________
> Linux-audio-dev mailing list
> Linux-audio-dev@email-addr-hidden
> http://lists.linuxaudio.org/listinfo/linux-audio-dev
>
>

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Fri Mar 4 16:15:01 2016

This archive was generated by hypermail 2.1.8 : Fri Mar 04 2016 - 16:15:01 EET