Dmitry Vyukov | 17192a7 | 2012-11-06 13:35:02 +0000 | [diff] [blame] | 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 | |
Evgeniy Stepanov | 24e1372 | 2013-03-19 14:33:38 +0000 | [diff] [blame] | 15 | #include "sanitizer_common/sanitizer_platform.h" |
Evgeniy Stepanov | 30e110e | 2013-03-19 14:54:17 +0000 | [diff] [blame] | 16 | #if SANITIZER_WINDOWS |
Dmitry Vyukov | 17192a7 | 2012-11-06 13:35:02 +0000 | [diff] [blame] | 17 | |
| 18 | #include "tsan_platform.h" |
| 19 | |
| 20 | #include <stdlib.h> |
| 21 | |
| 22 | namespace __tsan { |
| 23 | |
Dmitry Vyukov | 17192a7 | 2012-11-06 13:35:02 +0000 | [diff] [blame] | 24 | uptr GetShadowMemoryConsumption() { |
| 25 | return 0; |
| 26 | } |
| 27 | |
| 28 | void FlushShadowMemory() { |
| 29 | } |
| 30 | |
Stephen Hines | 6a211c5 | 2014-07-21 00:49:56 -0700 | [diff] [blame] | 31 | void WriteMemoryProfile(char *buf, uptr buf_size, uptr nthread, uptr nlive) { |
Stephen Hines | 2d1fdb2 | 2014-05-28 23:58:16 -0700 | [diff] [blame] | 32 | } |
| 33 | |
Stephen Hines | 6d18623 | 2014-11-26 17:56:19 -0800 | [diff] [blame] | 34 | void InitializePlatform() { |
Dmitry Vyukov | 17192a7 | 2012-11-06 13:35:02 +0000 | [diff] [blame] | 35 | } |
| 36 | |
Dmitry Vyukov | 17192a7 | 2012-11-06 13:35:02 +0000 | [diff] [blame] | 37 | } // namespace __tsan |
| 38 | |
Evgeniy Stepanov | 30e110e | 2013-03-19 14:54:17 +0000 | [diff] [blame] | 39 | #endif // SANITIZER_WINDOWS |