This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++ and race detectors
- From: Kostya Serebryany <kcc at google dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: Julian Seward <jseward at acm dot org>, Bart Van Assche <bvanassche at acm dot org>, "Frank, Matthew I" <matthew dot i dot frank at intel dot com>
- Date: Fri, 9 Jul 2010 15:29:00 +0400
- Subject: Re: libstdc++ and race detectors
- References: <AANLkTim68MweWz6dJkpl4t2Ub6EIlhpgPYas_Gc1WurR@mail.gmail.com>
[re-sending as plain text]
Hello?libstdc++ developers,
The code of?libstdc++ contains constructs that confuse race detection
tools (such as Helgrind, DRD, Intel Parallel Inspector and
ThreadSanitizer; developers of these tools CC-ed).
In particular, the implementation of ~basic_string<> contains atomic
reference counting which is not understood by any of these tools.
We would like to propose a change to the?libstdc++ code which will
make the library more friendly to race detectors.
Before we proceed with a bug report or a patch file, we'd like to know
your opinion on the problem.
The detailed description of the problem could be found here:
http://code.google.com/p/data-race-test/wiki/AtomicReferenceCounting.
Thanks,
--kcc