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:
brendan%mozilla.org
2002-04-02 04:23:21 +00:00
parent e022b0b4e7
commit 26633b1aa8
12 changed files with 61 additions and 50 deletions

View File

@@ -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);