Daily bump.
[official-gcc.git] / libsanitizer / tsan / tsan_platform_windows.cc
blobf16bebf7f4c574fba7b9cd67911268c8d62f2bba
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 #include "sanitizer_common/sanitizer_platform.h"
14 #if SANITIZER_WINDOWS
16 #include "tsan_platform.h"
18 #include <stdlib.h>
20 namespace __tsan {
22 uptr GetShadowMemoryConsumption() {
23 return 0;
26 void FlushShadowMemory() {
29 void WriteMemoryProfile(char *buf, uptr buf_size) {
32 uptr GetRSS() {
33 return 0;
36 const char *InitializePlatform() {
37 return GetEnv(kTsanOptionsEnv);
40 void FinalizePlatform() {
41 fflush(0);
44 } // namespace __tsan
46 #endif // SANITIZER_WINDOWS