summaryrefslogtreecommitdiffstats
path: root/tools/valgrind/tsan
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 14:16:02 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 14:16:02 +0000
commit4fb33bc53b4ce38e02f238165c9bed5e0f8dadba (patch)
tree6be2e79f092b37491db46ab9806ec363833a9fae /tools/valgrind/tsan
parent4004a0efe25ffd789c24b8d5f691123a15deba11 (diff)
downloadchromium_src-4fb33bc53b4ce38e02f238165c9bed5e0f8dadba.zip
chromium_src-4fb33bc53b4ce38e02f238165c9bed5e0f8dadba.tar.gz
chromium_src-4fb33bc53b4ce38e02f238165c9bed5e0f8dadba.tar.bz2
Move std::string ignores back to the common TSan ignore file to suppress a false report in unit
BUG=http://code.google.com/p/data-race-test/issues/detail?id=40 TBR=glider Review URL: http://codereview.chromium.org/3169025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56677 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind/tsan')
-rw-r--r--tools/valgrind/tsan/ignores.txt9
-rw-r--r--tools/valgrind/tsan/ignores_mac.txt15
2 files changed, 9 insertions, 15 deletions
diff --git a/tools/valgrind/tsan/ignores.txt b/tools/valgrind/tsan/ignores.txt
index 378d14c..1517faf 100644
--- a/tools/valgrind/tsan/ignores.txt
+++ b/tools/valgrind/tsan/ignores.txt
@@ -38,6 +38,15 @@ fun:vfprintf
fun:fwrite
fun:fflush
+# False reports on std::string internals, see
+# http://code.google.com/p/data-race-test/issues/detail?id=40
+fun:*_M_mutateE*
+fun_r:*_M_set_length_and_sharable*
+fun:*_M_is_leaked*
+fun:*_M_is_shared*
+fun:*_M_set_leaked*
+fun:*_M_set_sharable*
+
# Don't instrument intercepts
src:*ts_valgrind_intercepts.c
diff --git a/tools/valgrind/tsan/ignores_mac.txt b/tools/valgrind/tsan/ignores_mac.txt
index 4c3aa1b..20c7a13 100644
--- a/tools/valgrind/tsan/ignores_mac.txt
+++ b/tools/valgrind/tsan/ignores_mac.txt
@@ -10,21 +10,6 @@ fun:*base*subtle*Release_Store*
fun:*base*subtle*NoBarrier_Store*
fun:*base*subtle*NoBarrier_CompareAndSwap*
-# 32-bit version of std::string
-# There is something very strange inside these functions.
-# Looks like they write zero to a global variable which
-# value is already zero. I.e. the race is benign.
-# Global var is _ZNSs4_Rep20_S_empty_rep_storageE
-# The race can only be reported on Mac since empty_rep is ignored by name
-# inside ThreadSanitizer. Unfortunately, we don't have global variable names
-# when running on Mac.
-fun:*_M_mutateE*
-fun_r:*_M_set_length_and_sharable*
-fun:*_M_is_leaked*
-fun:*_M_is_shared*
-fun:*_M_set_leaked*
-fun:*_M_set_sharable*
-
# we ignore the Security libraries for now since
# their instrumentation is very slow.
# TODO(timurrrr): investigate whether we need to instrument them