Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index eaec7d3c3f4d7021ac82a03bea5f57fb5b5ca9db..339cc327bd9bbf3f9d8c7c1f63e97fb4944c058d 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -62,6 +62,7 @@ |
#ifndef V8_SHARED |
#include "api.h" |
#include "checks.h" |
+#include "cpu.h" |
#include "d8-debug.h" |
#include "debug.h" |
#include "natives.h" |
@@ -1709,7 +1710,8 @@ int Shell::Main(int argc, char* argv[]) { |
Isolate* isolate = Isolate::GetCurrent(); |
#ifndef V8_SHARED |
v8::ResourceConstraints constraints; |
- constraints.ConfigureDefaults(i::OS::TotalPhysicalMemory()); |
+ constraints.ConfigureDefaults(i::OS::TotalPhysicalMemory(), |
+ i::CPU::NumberOfProcessorsOnline()); |
v8::SetResourceConstraints(isolate, &constraints); |
#endif |
DumbLineEditor dumb_line_editor(isolate); |