summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorglider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-20 15:09:06 +0000
committerglider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-20 15:09:06 +0000
commit883555525bf098ac9b9f315ca421340758d9c41c (patch)
tree56a59d356d4ddc9a69b1425af145366dbdfa47a6 /third_party
parentef0d50ebfaa5e60b8a5d06e7222618c0aa48b000 (diff)
downloadchromium_src-883555525bf098ac9b9f315ca421340758d9c41c.zip
chromium_src-883555525bf098ac9b9f315ca421340758d9c41c.tar.gz
chromium_src-883555525bf098ac9b9f315ca421340758d9c41c.tar.bz2
Decrease the kHashbits to 12 effectively restoring the pre-r89459 size
of the page heap. TBR=antonm TEST=VM usage drops on the perf bots Review URL: http://codereview.chromium.org/7200028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89670 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/tcmalloc/chromium/src/packed-cache-inl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/tcmalloc/chromium/src/packed-cache-inl.h b/third_party/tcmalloc/chromium/src/packed-cache-inl.h
index 77f42b6..36a24a3 100644
--- a/third_party/tcmalloc/chromium/src/packed-cache-inl.h
+++ b/third_party/tcmalloc/chromium/src/packed-cache-inl.h
@@ -139,7 +139,9 @@ class PackedCache {
// Decrease the size map cache if running in the small memory mode.
static const int kHashbits = 12;
#else
- static const int kHashbits = 16;
+ // We don't want the hash map to occupy 512K memory at Chromium, so
+ // kHashbits is decreased from 16 to 12.
+ static const int kHashbits = 12;
#endif
static const int kValuebits = 7;
static const bool kUseWholeKeys = kKeybits + kValuebits <= 8 * sizeof(T);