Source code

Revision control

Copy as Markdown

Other Tools

/*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
// This file contains the WebRTC suppressions for ThreadSanitizer.
// Please refer to
// for more info.
#if defined(THREAD_SANITIZER)
// Please make sure the code below declares a single string variable
// kTSanDefaultSuppressions contains TSan suppressions delimited by newlines.
// for the instructions on writing suppressions.
char kTSanDefaultSuppressions[] =
// WebRTC specific suppressions.
// Split up suppressions covered previously by thread.cc and
// messagequeue.cc.
"race:vp8cx_remove_encoder_threads\n"
"race:third_party/libvpx/source/libvpx/vp9/common/vp9_scan.h\n"
// rtc_unittests
"race:rtc_base/logging.cc\n"
// Potential deadlocks detected after roll in r6516.
"deadlock:webrtc::test::UdpSocketManagerPosixImpl::RemoveSocket\n"
// TODO(pbos): Trace events are racy due to lack of proper POD atomics.
"race:*trace_event_unique_catstatic*\n"
// Race between InitCpuFlags and TestCpuFlag in libyuv.
"race:InitCpuFlags\n"
// Test-only race due to PeerConnection::session() being virtual for
// testing. The stats collector may call session() before or after the
// destructor begins executing, which modifies the vtable.
"race:*RTCStatsIntegrationTest_GetsStatsWhileDestroyingPeerConnections_"
"Test::TestBody\n"
"race:libpulsecommon*.so\n"
"race:absl::synchronization_internal::Waiter::Post\n"
// End of suppressions.
; // Please keep this semicolon.
#endif // THREAD_SANITIZER