Bug 556879 - JSRuntime::gcIsNeeded is needed after all. r=igor.

This commit is contained in:
Jason Orendorff 2010-04-06 16:39:16 -05:00
parent 75114bb688
commit 6fac8f385a

View File

@ -2488,6 +2488,11 @@ js_TriggerGC(JSContext *cx, JSBool gcLocked)
if (rt->gcIsNeeded)
return;
/*
* Trigger the GC when it is safe to call an operation callback on any
* thread.
*/
rt->gcIsNeeded = JS_TRUE;
js_TriggerAllOperationCallbacks(rt, gcLocked);
}