From 97eeb3d1205e6d95cc75edcf5ee21d40de74ddc9 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 11 Dec 2014 16:12:45 +0000 Subject: tsan: fix Go build GetRSS is used in Go build. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224023 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/sanitizer_common/sanitizer_linux.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/sanitizer_common/sanitizer_linux.cc b/lib/sanitizer_common/sanitizer_linux.cc index 502ea48b8..36de1ec70 100644 --- a/lib/sanitizer_common/sanitizer_linux.cc +++ b/lib/sanitizer_common/sanitizer_linux.cc @@ -379,6 +379,7 @@ static void ReadNullSepFileToArray(const char *path, char ***arr, } (*arr)[count] = 0; } +#endif uptr GetRSS() { uptr fd = OpenFile("/proc/self/statm", false); @@ -407,8 +408,6 @@ uptr GetRSS() { return rss * 4096; } -#endif - static void GetArgsAndEnv(char*** argv, char*** envp) { #if !SANITIZER_GO if (&__libc_stack_end) { -- cgit v1.2.3