Cygwin doesn't have the RSS_LIMIT for get/setrlimit.
llvm-svn: 36361
This commit is contained in:
parent
fe6e3f49b1
commit
e2e9b37698
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue