diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-28 09:31:58 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-28 09:31:58 +0000 |
commit | 91cd4febe4c959d8256341e25a59a4d9dca9ca69 (patch) | |
tree | fd209b95a98db73a7f6e3b7edfc7cee40de6eb62 /gin/isolate_holder.cc | |
parent | 8070b950de0375a10e5e79439bfea7dca26d51b1 (diff) | |
download | chromium_src-91cd4febe4c959d8256341e25a59a4d9dca9ca69.zip chromium_src-91cd4febe4c959d8256341e25a59a4d9dca9ca69.tar.gz chromium_src-91cd4febe4c959d8256341e25a59a4d9dca9ca69.tar.bz2 |
Remove usage of deprecagted V8 API from gin/
R=mkwst@chromium.org
TBR=abarth@chromium.org
BUG=324225
Review URL: https://codereview.chromium.org/94413002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237750 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin/isolate_holder.cc')
-rw-r--r-- | gin/isolate_holder.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gin/isolate_holder.cc b/gin/isolate_holder.cc index b5501b6..c9f435c 100644 --- a/gin/isolate_holder.cc +++ b/gin/isolate_holder.cc @@ -48,7 +48,8 @@ IsolateHolder::IsolateHolder() EnsureV8Initialized(true); isolate_ = v8::Isolate::New(); v8::ResourceConstraints constraints; - constraints.ConfigureDefaults(base::SysInfo::AmountOfPhysicalMemory()); + constraints.ConfigureDefaults(base::SysInfo::AmountOfPhysicalMemory(), + base::SysInfo::NumberOfProcessors()); v8::SetResourceConstraints(isolate_, &constraints); v8::Isolate::Scope isolate_scope(isolate_); v8::HandleScope handle_scope(isolate_); |