]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Added a suppression pattern for the boost thread library.
authorBart Van Assche <bvanassche@acm.org>
Sat, 5 Jun 2010 11:57:57 +0000 (11:57 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sat, 5 Jun 2010 11:57:57 +0000 (11:57 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11152

glibc-2.X-drd.supp

index 0d32d4f81aa91c737d00ba3bbfc3659d6d0294f5..e10363c87ea5f5aed4d2ef08d3428a1fe2249571 100644 (file)
 #
 
 # Suppress the races on boost::once_flag::epoch and on
-# boost::detail::once_global_epoch. See also the source file
-# boost/thread/pthread/once.hpp in the Boost source tree.
+# boost::detail::this_thread_epoch. See also the source file
+# boost/thread/pthread/once.hpp in the Boost source tree
+# (https://svn.boost.org/trac/boost/browser/trunk/boost/thread/pthread/once.hpp).
 {
    drd-libboost-boost::call_once<void (*)()>(boost::once_flag&, void (*)())
    drd:ConflictingAccess
    drd:ConflictingAccess
    fun:_ZN5boost6detail25get_once_per_thread_epochEv
 }
+# Suppress the race reports on boost::detail::current_thread_tls_key. See also
+# https://svn.boost.org/trac/boost/ticket/3526 for more information about why
+# the access pattern of current_thread_tls_key is safe.
 {
    drd-libboost-boost::detail::get_current_thread_data()
    drd:ConflictingAccess
    ...
    fun:_ZN5boost6detail23get_current_thread_dataEv
 }
+{
+   drd-libboost-boost::detail::set_current_thread_data(boost::detail::thread_data_base*)
+   drd:ConflictingAccess
+   ...
+   fun:_ZN5boost6detail23set_current_thread_dataEPNS0_16thread_data_baseE
+}