Bug 807896 - Reduce the initial size of SPS's strings hashtable. r=acrichto.
authorNicholas Nethercote <nnethercote@mozilla.com>
Sun, 04 Nov 2012 14:17:53 -0800
changeset 112284 52feef2d0c8e5c5dfb922b7d9e56aaa1a928762f
parent 112280 82795635cc76004e38c7698bed4eabd5e1b79bad
child 112285 5a5775d8c49887ea2ebfde1224e71298bab94754
push id23809
push useremorley@mozilla.com
push dateMon, 05 Nov 2012 15:24:12 +0000
treeherdermozilla-central@358c9830d166 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersacrichto
bugs807896
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 807896 - Reduce the initial size of SPS's strings hashtable. r=acrichto.
js/src/vm/SPSProfiler.cpp
--- a/js/src/vm/SPSProfiler.cpp
+++ b/js/src/vm/SPSProfiler.cpp
@@ -41,17 +41,17 @@ SPSProfiler::~SPSProfiler()
 #endif
 }
 
 void
 SPSProfiler::setProfilingStack(ProfileEntry *stack, uint32_t *size, uint32_t max)
 {
     JS_ASSERT_IF(size_ && *size_ != 0, !enabled());
     if (!strings.initialized())
-        strings.init(max);
+        strings.init();
     stack_ = stack;
     size_  = size;
     max_   = max;
 }
 
 void
 SPSProfiler::enable(bool enabled)
 {