summaryrefslogtreecommitdiffstats
path: root/content/zygote
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-08 23:19:16 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-08 23:19:16 +0000
commit275a29deaf8a70834e4c5dc7d2f9458bedd80154 (patch)
treeabd2741729a3d672a83b45043227331c45f754bc /content/zygote
parent2993010b5f527912cea918a16fad4cc7b5ded5dc (diff)
downloadchromium_src-275a29deaf8a70834e4c5dc7d2f9458bedd80154.zip
chromium_src-275a29deaf8a70834e4c5dc7d2f9458bedd80154.tar.gz
chromium_src-275a29deaf8a70834e4c5dc7d2f9458bedd80154.tar.bz2
Expose the virtual memory limit to blink
V8 queries the limit before sandbox initialization via static initializers. We should pass it in like the other memory related values instead. BUG=none R=mark@chromium.org Review URL: https://codereview.chromium.org/227113011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262544 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/zygote')
-rw-r--r--content/zygote/zygote_main_linux.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/content/zygote/zygote_main_linux.cc b/content/zygote/zygote_main_linux.cc
index 5dc09fa..63a45e5 100644
--- a/content/zygote/zygote_main_linux.cc
+++ b/content/zygote/zygote_main_linux.cc
@@ -311,6 +311,7 @@ static void ZygotePreSandboxInit() {
base::RandUint64();
base::SysInfo::AmountOfPhysicalMemory();
+ base::SysInfo::AmountOfVirtualMemory();
base::SysInfo::MaxSharedMemorySize();
base::SysInfo::NumberOfProcessors();