On Wed, 2008-10-15 at 13:02 +0200, Olivier
Guilyardi wrote:
I'm no memory barrier expert, but from what I
read this looks like a complex
topic. Adding them to jack's ring buffer may be hazardous without carefully
crafted test cases. Bugs related to missing barriers may or may not happen
according to various hardware-related issues.
the point of memory barriers is
really to remove the need for test
cases :)
I meant Test First, not putting a memory barrier between us and past bugs ;)
My concern is: people around say memory barriers are missing, but could anyone
write a unit test that actually turns this assumption into a bug?