summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/rtl/tsan_platform.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2013-10-03 17:14:35 +0000
committerDmitry Vyukov <dvyukov@google.com>2013-10-03 17:14:35 +0000
commit302ec7b9bc49c4c88fd7c9e579de897005bff45e (patch)
tree10b6c3ee296fe16a96e51b19c989040c4afac91b /compiler-rt/lib/tsan/rtl/tsan_platform.h
parent72f55d46c8873a76d9070ca200eeede6aca64d7c (diff)
downloadbcm5719-llvm-302ec7b9bc49c4c88fd7c9e579de897005bff45e.tar.gz
bcm5719-llvm-302ec7b9bc49c4c88fd7c9e579de897005bff45e.zip
tsan: add memory_limit_mb flag
The flag allows to bound maximum process memory consumption (best effort). If RSS reaches memory_limit_mb, tsan flushes all shadow memory. llvm-svn: 191913
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_platform.h')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_platform.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform.h b/compiler-rt/lib/tsan/rtl/tsan_platform.h
index 666b4d0c482..70e1183afa2 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_platform.h
+++ b/compiler-rt/lib/tsan/rtl/tsan_platform.h
@@ -134,6 +134,7 @@ static inline uptr AlternativeAddress(uptr addr) {
void FlushShadowMemory();
void WriteMemoryProfile(char *buf, uptr buf_size);
+uptr GetRSS();
const char *InitializePlatform();
void FinalizePlatform();
OpenPOWER on IntegriCloud