libstdc++/5037: Multithreaded read access to strings not threadsafe on Solaris/Sparc

Alan Modra amodra@bigpond.net.au
Thu Dec 6 16:23:00 GMT 2001


On Thu, Dec 06, 2001 at 09:08:47PM -0000, ljrittle@gcc.gnu.org wrote:
> Can you verify that
> config/cpu/sparc/sparc32/bits/atomicity.h is being used

I believe this file is broken.  __exchange_and_add and __atomic_add
use separate locks, and so are not protected from each other.

Alan



More information about the Gcc-bugs mailing list