Home | History | Annotate | Download | only in rtl
      1 //===-- tsan_platform_windows.cc ------------------------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 //
     10 // This file is a part of ThreadSanitizer (TSan), a race detector.
     11 //
     12 // Windows-specific code.
     13 //===----------------------------------------------------------------------===//
     14 
     15 #ifdef _WIN32
     16 
     17 #include "tsan_platform.h"
     18 
     19 #include <stdlib.h>
     20 
     21 namespace __tsan {
     22 
     23 ScopedInRtl::ScopedInRtl() {
     24 }
     25 
     26 ScopedInRtl::~ScopedInRtl() {
     27 }
     28 
     29 uptr GetShadowMemoryConsumption() {
     30   return 0;
     31 }
     32 
     33 void FlushShadowMemory() {
     34 }
     35 
     36 const char *InitializePlatform() {
     37   return GetEnv(kTsanOptionsEnv);
     38 }
     39 
     40 void FinalizePlatform() {
     41   fflush(0);
     42 }
     43 
     44 void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size,
     45                           uptr *tls_addr, uptr *tls_size) {
     46   *stk_addr = 0;
     47   *stk_size = 0;
     48   *tls_addr = 0;
     49   *tls_size = 0;
     50 }
     51 
     52 }  // namespace __tsan
     53 
     54 #endif  // #ifdef _WIN32
     55