Commit cfa49d26 authored by Shu-yu Guo's avatar Shu-yu Guo Committed by V8 LUCI CQ

[d8] Configure the shared Isolate with the same memory constraints as other Isolates

Bug: v8:12007, v8:12584
Change-Id: Ic78eb0e7145c7d6127d23e46a6ddccfbd31fffd4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3419796
Auto-Submit: Shu-yu Guo <syg@chromium.org>
Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79770}
parent 9dd0d714
...@@ -5346,6 +5346,9 @@ int Shell::Main(int argc, char* argv[]) { ...@@ -5346,6 +5346,9 @@ int Shell::Main(int argc, char* argv[]) {
if (HasFlagThatRequiresSharedIsolate()) { if (HasFlagThatRequiresSharedIsolate()) {
Isolate::CreateParams shared_create_params; Isolate::CreateParams shared_create_params;
shared_create_params.constraints.ConfigureDefaults(
base::SysInfo::AmountOfPhysicalMemory(),
base::SysInfo::AmountOfVirtualMemory());
shared_create_params.array_buffer_allocator = Shell::array_buffer_allocator; shared_create_params.array_buffer_allocator = Shell::array_buffer_allocator;
shared_isolate = shared_isolate =
reinterpret_cast<Isolate*>(i::Isolate::NewShared(shared_create_params)); reinterpret_cast<Isolate*>(i::Isolate::NewShared(shared_create_params));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment