libstdc++ and race detectors
Kostya Serebryany
kcc@google.com
Fri Jul 9 11:29:00 GMT 2010
[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
More information about the Libstdc++
mailing list