1 //===-- tsan_platform_windows.cc ------------------------------------------===//
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
6 //===----------------------------------------------------------------------===//
8 // This file is a part of ThreadSanitizer (TSan), a race detector.
10 // Windows-specific code.
11 //===----------------------------------------------------------------------===//
15 #include "tsan_platform.h"
21 ScopedInRtl::ScopedInRtl() {
24 ScopedInRtl::~ScopedInRtl() {
27 uptr
GetShadowMemoryConsumption() {
31 void FlushShadowMemory() {
34 const char *InitializePlatform() {
35 return GetEnv(kTsanOptionsEnv
);
38 void FinalizePlatform() {
46 void GetThreadStackAndTls(bool main
, uptr
*stk_addr
, uptr
*stk_size
,
47 uptr
*tls_addr
, uptr
*tls_size
) {
56 #endif // #ifdef _WIN32