mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-20 18:52:46 +00:00
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
This commit is contained in:
parent
0a2cdb687b
commit
2e40d03290
@ -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…
x
Reference in New Issue
Block a user