This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/5037: Multithreaded read access to strings not threadsafe on Solaris/Sparc
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: ljrittle at gcc dot gnu dot org
- Cc: ckaes at jabber dot com, gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Fri, 7 Dec 2001 10:29:07 +1030
- Subject: Re: libstdc++/5037: Multithreaded read access to strings not threadsafe on Solaris/Sparc
- References: <20011206210847.27359.qmail@sources.redhat.com>
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