1// Copyright 2021 the V8 project authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5// ThreadSanitizer support. 6 7#ifndef V8_BASE_SANITIZER_TSAN_H_ 8#define V8_BASE_SANITIZER_TSAN_H_ 9 10#if defined(THREAD_SANITIZER) 11 12#define DISABLE_TSAN __attribute__((no_sanitize_thread)) 13 14#else // !defined(THREAD_SANITIZER) 15 16#define DISABLE_TSAN 17 18#endif // !defined(THREAD_SANITIZER) 19 20#endif // V8_BASE_SANITIZER_TSAN_H_ 21