Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 17bd6713637c7054bde9ca5240975f48b4f5a307..a71b33bf33fa2ee5be2596acd08c3706cda83ba0 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -1679,11 +1679,13 @@ int Shell::Main(int argc, char* argv[]) { |
#else |
SetStandaloneFlagsViaCommandLine(); |
#endif |
- v8::SetDefaultResourceConstraintsForCurrentPlatform(); |
ShellArrayBufferAllocator array_buffer_allocator; |
v8::V8::SetArrayBufferAllocator(&array_buffer_allocator); |
int result = 0; |
Isolate* isolate = Isolate::GetCurrent(); |
+ v8::ResourceConstraints constraints; |
+ constraints.ConfigureDefaults(i::OS::TotalPhysicalMemory()); |
+ v8::SetResourceConstraints(isolate, &constraints); |
DumbLineEditor dumb_line_editor(isolate); |
{ |
Initialize(isolate); |