This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++ and race detectors


[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]