зеркало из https://github.com/mozilla/pjs.git
Backed out changeset 504bc84513b0. Andreas Gal – Ensure that JSOPTION_UNROOTED_GLOBAL is set when we cycle collect (stop-gap measure for bug 584495, r=brendan). default tip
This commit is contained in:
Родитель
4bd9588df1
Коммит
6aba1e0129
|
@ -498,15 +498,6 @@ JSBool XPCJSRuntime::GCCallback(JSContext *cx, JSGCStatus status)
|
|||
{
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
||||
// We seem to sometime lose the unrooted global flag. Restore it
|
||||
// here. FIXME: bug 584495.
|
||||
JSContext *iter = nsnull, *acx;
|
||||
|
||||
while((acx = JS_ContextIterator(GetJSRuntime(), &iter))) {
|
||||
if (!JS_HAS_OPTION(acx, JSOPTION_UNROOTED_GLOBAL))
|
||||
JS_ToggleOptions(acx, JSOPTION_UNROOTED_GLOBAL);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case JSGC_MARK_END:
|
||||
|
|
Загрузка…
Ссылка в новой задаче