Commit f8905798 authored by Maggie Chen's avatar Maggie Chen Committed by Commit Bot

Support memory size > 4GB for the renderer process in Windows

Chrome renderer process crash if we allocate more than 4 Gb of memory. Allow a
bigger memory size in Windows sand box if the system has enough memory.

Bug: 756834
Change-Id: I2da53b885049f94c05f0fdf6ff27db8033f55243
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1570633Reviewed-by: default avatarChris Palmer <palmer@chromium.org>
Reviewed-by: default avatarWill Harris <wfh@chromium.org>
Commit-Queue: Will Harris <wfh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653234}
parent fcba225f
......@@ -570,8 +570,10 @@ sandbox::ResultCode SetJobMemoryLimit(const base::CommandLine& cmd_line,
// Note that this command line flag hasn't been fetched by all
// callers of SetJobLevel, only those in this file.
if (service_manager::SandboxTypeFromCommandLine(cmd_line) ==
service_manager::SANDBOX_TYPE_GPU) {
SandboxType sandbox_type =
service_manager::SandboxTypeFromCommandLine(cmd_line);
if (sandbox_type == service_manager::SANDBOX_TYPE_GPU ||
sandbox_type == service_manager::SANDBOX_TYPE_RENDERER) {
int64_t GB = 1024 * 1024 * 1024;
// Allow the GPU process's sandbox to access more physical memory if
// it's available on the system.
......
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