libraries/v8/platform-posix.cc
// Maximum size of the virtual memory.  0 means there is no artificial
// limit.
Maximum size of the virtual memory.  0 means there is no artificial
limit.
Maximum size of the virtual memory . 0 means there is no artificial limit .
intptr_t OS::MaxVirtualMemory() {
  struct rlimit limit;
  int result = getrlimit(RLIMIT_DATA, &limit);
  if (result != 0) return 0;
#if V8_OS_MACOSX
  limit.rlim_cur = limit.rlim_max;
  setrlimit(RLIMIT_DATA, &limit);
#endif
  return limit.rlim_cur;
}
intptr_t OS :: MaxVirtualMemory ( ) { struct rlimit limit ; int result = getrlimit ( RLIMIT_DATA , & limit ) ; if ( result != 0 ) return 0 ; #if V8_OS_MACOSX limit . rlim_cur = limit . rlim_max ; setrlimit ( RLIMIT_DATA , & limit ) ; #endif return limit . rlim_cur ; }
Maximum size of the virtual memory.
Maximum size of the virtual memory .