mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:09:49 +00:00
f4f0831c69
Change-Id: I15078e845712e8e712e2cb0a044fc7550127ea36 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/120629 Commit-Queue: Ryan Macnak <rmacnak@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>
23 lines
639 B
C
23 lines
639 B
C
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#ifndef RUNTIME_PLATFORM_THREAD_SANITIZER_H_
|
|
#define RUNTIME_PLATFORM_THREAD_SANITIZER_H_
|
|
|
|
#include "platform/globals.h"
|
|
|
|
#if defined(__has_feature)
|
|
#if __has_feature(thread_sanitizer)
|
|
#define USING_THREAD_SANITIZER
|
|
#endif
|
|
#endif
|
|
|
|
#if defined(USING_THREAD_SANITIZER)
|
|
#define NO_SANITIZE_THREAD __attribute__((no_sanitize("thread")))
|
|
#else
|
|
#define NO_SANITIZE_THREAD
|
|
#endif
|
|
|
|
#endif // RUNTIME_PLATFORM_THREAD_SANITIZER_H_
|