Bug 840809 (part 3) - Shrink initial size of some per-compartment tables. r=billm.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 14 Feb 2013 11:12:25 -0800
changeset 131825 b9cd1fa2050220540034e8cc5f90e7bcc7c74a78
parent 131824 e3707e9cbba08791255599831d24c076d7f44c8f
child 131826 2984ebe7f22235c83c967ccedbd916d1c56f4a58
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbillm
bugs840809
milestone21.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 840809 (part 3) - Shrink initial size of some per-compartment tables. r=billm.
content/svg/content/src/nsSVGFilters.cpp
js/src/jscompartment.cpp
js/src/vm/RegExpObject.cpp
--- a/js/src/jscompartment.cpp
+++ b/js/src/jscompartment.cpp
@@ -117,30 +117,30 @@ JSCompartment::init(JSContext *cx)
      * (unless they also create tons of iframes, which seems unlikely).
      */
     if (cx)
         cx->runtime->dateTimeInfo.updateTimeZoneAdjustment();
 
     activeAnalysis = false;
     types.init(cx);
 
-    if (!crossCompartmentWrappers.init())
+    if (!crossCompartmentWrappers.init(0))
         return false;
 
     if (!regExps.init(cx))
         return false;
 
     if (cx)
         InitRandom(cx->runtime, &rngState);
 
     enumerators = NativeIterator::allocateSentinel(cx);
     if (!enumerators)
         return false;
 
-    return debuggees.init();
+    return debuggees.init(0);
 }
 
 void
 JSCompartment::setNeedsBarrier(bool needs, ShouldUpdateIon updateIon)
 {
 #ifdef JS_METHODJIT
     /* ClearAllFrames calls compileBarriers() and needs the old value. */
     bool old = compileBarriers();
--- a/js/src/vm/RegExpObject.cpp
+++ b/js/src/vm/RegExpObject.cpp
@@ -632,17 +632,17 @@ RegExpCompartment::~RegExpCompartment()
 {
     JS_ASSERT(map_.empty());
     JS_ASSERT(inUse_.empty());
 }
 
 bool
 RegExpCompartment::init(JSContext *cx)
 {
-    if (!map_.init() || !inUse_.init()) {
+    if (!map_.init(0) || !inUse_.init(0)) {
         if (cx)
             js_ReportOutOfMemory(cx);
         return false;
     }
 
     return true;
 }