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 #include "sanitizer_common/sanitizer_platform.h"
     16 #if SANITIZER_WINDOWS
     17 
     18 #include "tsan_platform.h"
     19 
     20 #include <stdlib.h>
     21 
     22 namespace __tsan {
     23 
     24 ScopedInRtl::ScopedInRtl() {
     25 }
     26 
     27 ScopedInRtl::~ScopedInRtl() {
     28 }
     29 
     30 uptr GetShadowMemoryConsumption() {
     31   return 0;
     32 }
     33 
     34 void FlushShadowMemory() {
     35 }
     36 
     37 const char *InitializePlatform() {
     38   return GetEnv(kTsanOptionsEnv);
     39 }
     40 
     41 void FinalizePlatform() {
     42   fflush(0);
     43 }
     44 
     45 }  // namespace __tsan
     46 
     47 #endif  // SANITIZER_WINDOWS
     48