summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/render_process_host.cc
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-21 20:28:21 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-21 20:28:21 +0000
commit1c36b962d877273125d92c4996a136fc1ac7e806 (patch)
treec140284241c1236eab8d7292f4a3e48226b5a857 /chrome/browser/renderer_host/render_process_host.cc
parentd6a16564e95db8cab49f9761e4864b3fcc013cd9 (diff)
downloadchromium_src-1c36b962d877273125d92c4996a136fc1ac7e806.zip
chromium_src-1c36b962d877273125d92c4996a136fc1ac7e806.tar.gz
chromium_src-1c36b962d877273125d92c4996a136fc1ac7e806.tar.bz2
* Revert "POSIX: Get render_process_host to build."
* Revert "Build fix: release builds seemed to break" Review URL: http://codereview.chromium.org/18460 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8386 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_process_host.cc')
-rw-r--r--chrome/browser/renderer_host/render_process_host.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/browser/renderer_host/render_process_host.cc b/chrome/browser/renderer_host/render_process_host.cc
index 3ec8328..18323f4 100644
--- a/chrome/browser/renderer_host/render_process_host.cc
+++ b/chrome/browser/renderer_host/render_process_host.cc
@@ -12,11 +12,10 @@
namespace {
unsigned int GetMaxRendererProcessCount() {
- // Defines the maximum number of renderer processes according to the
- // amount of installed memory as reported by the OS. The table
- // values are calculated by assuming that you want the renderers to
- // use half of the installed ram and assuming that each tab uses
- // ~25MB.
+ // Defines the maximum number of renderer processes according to the amount
+ // of installed memory as reported by the OS. The table values are calculated
+ // by assuming that you want the renderers to use half of the installed ram
+ // and assuming that each tab uses ~25MB.
static const int kMaxRenderersByRamTier[] = {
4, // less than 256MB
8, // 256MB
@@ -26,7 +25,7 @@ unsigned int GetMaxRendererProcessCount() {
static unsigned int max_count = 0;
if (!max_count) {
- size_t memory_tier = base::SysInfo::AmountOfPhysicalMemoryMB() / 256;
+ int memory_tier = base::SysInfo::AmountOfPhysicalMemoryMB() / 256;
if (memory_tier >= arraysize(kMaxRenderersByRamTier))
max_count = chrome::kMaxRendererProcessCount;
else