Rewrite CPOWs to use one actor per process (bug 853209, r=billm,bholley,smaug).

This commit is contained in:
David Anderson
2013-07-03 00:24:32 -07:00
parent 52c08f8e44
commit 0fb025f184
55 changed files with 2376 additions and 2628 deletions

View File

@@ -464,7 +464,9 @@ CycleCollectedJSRuntime::CycleCollectedJSRuntime(uint32_t aMaxbytes,
MOZ_CRASH();
}
JS_SetExtraGCRootsTracer(mJSRuntime, TraceBlackJS, this);
if (!JS_AddExtraGCRootsTracer(mJSRuntime, TraceBlackJS, this)) {
MOZ_CRASH();
}
JS_SetGrayGCRootsTracer(mJSRuntime, TraceGrayJS, this);
mJSHolders.Init(512);