re PR c++/19476 (Missed null checking elimination with new)
[official-gcc.git] / libsanitizer / tsan / tsan_platform_windows.cc
blob376dc08688be04be24dd21d001803ff313712c9c
1 //===-- tsan_platform_windows.cc ------------------------------------------===//
2 //
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
5 //
6 //===----------------------------------------------------------------------===//
7 //
8 // This file is a part of ThreadSanitizer (TSan), a race detector.
9 //
10 // Windows-specific code.
11 //===----------------------------------------------------------------------===//
13 #ifdef _WIN32
15 #include "tsan_platform.h"
17 #include <stdlib.h>
19 namespace __tsan {
21 ScopedInRtl::ScopedInRtl() {
24 ScopedInRtl::~ScopedInRtl() {
27 uptr GetShadowMemoryConsumption() {
28 return 0;
31 void FlushShadowMemory() {
34 const char *InitializePlatform() {
35 return GetEnv(kTsanOptionsEnv);
38 void FinalizePlatform() {
39 fflush(0);
42 uptr GetTlsSize() {
43 return 0;
46 void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size,
47 uptr *tls_addr, uptr *tls_size) {
48 *stk_addr = 0;
49 *stk_size = 0;
50 *tls_addr = 0;
51 *tls_size = 0;
54 } // namespace __tsan
56 #endif // #ifdef _WIN32