[Pkg-gauche-devel] Bug#779949: gauche: possible data race around PORT_UNLOCK
james410 at cowgill.org.uk
Fri Mar 6 17:21:55 UTC 2015
After applying the libatomic-ops patch , gauche almost finishes
building on mips64el but it sometimes fails the "threads" test. I found
this was caused by a possible data race in the PORT_UNLOCK macro because
it doesn't issue a memory barrier when unlocking the lock (and so
earlier stores might be moved AFTER the unlock macro).
I've attached a patch which fixes this. I've tried to add the equivalent
for Windows (if you wanted to upstream it) but I haven't tested it
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1679 bytes
Desc: not available
More information about the Pkg-gauche-devel