Fix next-to-last vs. last context GC race, plus ClaimScope vs. js_DestroyContext race; removed js_ForceGC from the FRIEND JS API (133773, sr=jband&shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@117899 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -252,7 +252,7 @@ GC(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
js_DumpGCHeap = stdout;
|
||||
}
|
||||
#endif
|
||||
js_ForceGC(cx);
|
||||
JS_GC(cx);
|
||||
#ifdef GC_MARK_DEBUG
|
||||
if (js_DumpGCHeap != stdout)
|
||||
fclose(js_DumpGCHeap);
|
||||
|
||||
Reference in New Issue
Block a user