This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/24469] Possible race condition in mt_allocator causing SIGSEGV
- From: "bkoz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2006 17:52:10 -0000
- Subject: [Bug libstdc++/24469] Possible race condition in mt_allocator causing SIGSEGV
- References: <bug-24469-9884@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from bkoz at gcc dot gnu dot org 2006-03-03 17:52 -------
Created an attachment (id=10963)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10963&action=view)
make _M_used, _M_free atomic
Hey. This is a patch to make these operations atomic. It's based on top of
another set of patches that improve scalability, and some cleanups.
I'm awaiting the assignments for some of this, and when I do I'll stagger that
part in first.
The use of atomic updates kills performance on x86. Perhaps there is a better
way to do this.
-benjamin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24469