Revision: 20583
Author: [email protected]
Date: Tue Apr 8 17:19:15 2014 UTC
Log: Return 0 as maximal amount of physical memory if there is no
limit.
That's what the comment says should happen, and what Heap's ctor
expects.
BUG=none
LOG=n
[email protected]
Review URL: https://codereview.chromium.org/226113006
http://code.google.com/p/v8/source/detail?r=20583
Modified:
/branches/bleeding_edge/src/platform-posix.cc
=======================================
--- /branches/bleeding_edge/src/platform-posix.cc Tue Apr 1 12:48:35 2014
UTC
+++ /branches/bleeding_edge/src/platform-posix.cc Tue Apr 8 17:19:15 2014
UTC
@@ -96,6 +96,7 @@
struct rlimit limit;
int result = getrlimit(RLIMIT_DATA, &limit);
if (result != 0) return 0;
+ if (limit.rlim_cur == RLIM_INFINITY) return 0;
return limit.rlim_cur;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.