Bug 840809 (part 3) - Shrink initial size of some per-compartment tables. r=billm.

--HG--
extra : rebase_source : 70b534a4e16306d161228a640b3eb5cdf9a6b478
This commit is contained in:
Nicholas Nethercote 2013-02-14 11:12:25 -08:00
parent bcfb0eadfd
commit d6984b03b9
2 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ JSCompartment::init(JSContext *cx)
activeAnalysis = false;
types.init(cx);
if (!crossCompartmentWrappers.init())
if (!crossCompartmentWrappers.init(0))
return false;
if (!regExps.init(cx))
@ -135,7 +135,7 @@ JSCompartment::init(JSContext *cx)
if (!enumerators)
return false;
return debuggees.init();
return debuggees.init(0);
}
void

View File

@ -637,7 +637,7 @@ RegExpCompartment::~RegExpCompartment()
bool
RegExpCompartment::init(JSContext *cx)
{
if (!map_.init() || !inUse_.init()) {
if (!map_.init(0) || !inUse_.init(0)) {
if (cx)
js_ReportOutOfMemory(cx);
return false;