Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 7ac0c6546aae188ed931306095f824568a7049b1..4e14cd5b0aa65f1607f3b2a9491f3970a4e95095 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -1696,6 +1696,7 @@ int Shell::Main(int argc, char* argv[]) { |
#ifndef V8_SHARED |
v8::ResourceConstraints constraints; |
constraints.ConfigureDefaults(i::OS::TotalPhysicalMemory(), |
+ i::OS::MaxVirtualMemory(), |
i::CPU::NumberOfProcessorsOnline()); |
v8::SetResourceConstraints(isolate, &constraints); |
#endif |