mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 556879 - JSRuntime::gcIsNeeded is needed after all. r=igor.
This commit is contained in:
parent
75114bb688
commit
6fac8f385a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user