mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 840809 (part 3) - Shrink initial size of some per-compartment tables. r=billm.
--HG-- extra : rebase_source : 70b534a4e16306d161228a640b3eb5cdf9a6b478
This commit is contained in:
parent
bcfb0eadfd
commit
d6984b03b9
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user