From 302ec7b9bc49c4c88fd7c9e579de897005bff45e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 3 Oct 2013 17:14:35 +0000 Subject: 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 --- compiler-rt/lib/tsan/rtl/tsan_platform.h | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler-rt/lib/tsan/rtl/tsan_platform.h') 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(); -- cgit v1.2.3