[llvm-commits] CVS: llvm/lib/System/Unix/Program.inc
Reid Spencer
reid at x10sys.com
Mon Apr 23 00:23:16 PDT 2007
Changes in directory llvm/lib/System/Unix:
Program.inc updated: 1.23 -> 1.24
---
Log message:
Cygwin doesn't have the RSS_LIMIT for get/setrlimit.
---
Diffs of the changes: (+2 -0)
Program.inc | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/lib/System/Unix/Program.inc
diff -u llvm/lib/System/Unix/Program.inc:1.23 llvm/lib/System/Unix/Program.inc:1.24
--- llvm/lib/System/Unix/Program.inc:1.23 Fri Feb 16 13:11:06 2007
+++ llvm/lib/System/Unix/Program.inc Mon Apr 23 02:22:51 2007
@@ -119,10 +119,12 @@
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;
More information about the llvm-commits
mailing list