From: Reid Spencer Date: Mon, 23 Apr 2007 07:22:51 +0000 (+0000) Subject: Cygwin doesn't have the RSS_LIMIT for get/setrlimit. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2e40d0329065d2744b5ed2abfe20c549c9d3f5e2;p=oota-llvm.git Cygwin doesn't have the RSS_LIMIT for get/setrlimit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36361 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index 77d74a18c67..1fe25861e1e 100644 --- a/lib/System/Unix/Program.inc +++ b/lib/System/Unix/Program.inc @@ -119,10 +119,12 @@ static void SetMemoryLimits (unsigned size) getrlimit (RLIMIT_DATA, &r); r.rlim_cur = limit; setrlimit (RLIMIT_DATA, &r); +#ifndef __CYGWIN__ // Resident set size. getrlimit (RLIMIT_RSS, &r); r.rlim_cur = limit; setrlimit (RLIMIT_RSS, &r); +#endif // Virtual memory. getrlimit (RLIMIT_AS, &r); r.rlim_cur = limit;