mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Solaris 2.x does not have RLIMIT_RSS, check for this symbol (analog NetBSD below), should subsume Cygwin
llvm-svn: 37939
This commit is contained in:
parent
7e50c11edd
commit
f9cf3d3440
@ -119,7 +119,7 @@ static void SetMemoryLimits (unsigned size)
|
|||||||
getrlimit (RLIMIT_DATA, &r);
|
getrlimit (RLIMIT_DATA, &r);
|
||||||
r.rlim_cur = limit;
|
r.rlim_cur = limit;
|
||||||
setrlimit (RLIMIT_DATA, &r);
|
setrlimit (RLIMIT_DATA, &r);
|
||||||
#ifndef __CYGWIN__
|
#ifdef RLIMIT_RSS
|
||||||
// Resident set size.
|
// Resident set size.
|
||||||
getrlimit (RLIMIT_RSS, &r);
|
getrlimit (RLIMIT_RSS, &r);
|
||||||
r.rlim_cur = limit;
|
r.rlim_cur = limit;
|
||||||
|
Loading…
Reference in New Issue
Block a user