[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: Igor Sheludko <ishell@chromium.org> Reviewed-by: Marja Hölttä <marja@chromium.org> Commit-Queue: Marja Hölttä <marja@chromium.org> Cr-Commit-Position: refs/heads/main@{#79770}
This commit is contained in:
parent
9dd0d7147b
commit
cfa49d2621
@ -5346,6 +5346,9 @@ int Shell::Main(int argc, char* argv[]) {
|
||||
|
||||
if (HasFlagThatRequiresSharedIsolate()) {
|
||||
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_isolate =
|
||||
reinterpret_cast<Isolate*>(i::Isolate::NewShared(shared_create_params));
|
||||
|
Loading…
Reference in New Issue
Block a user