git-svn-id: svn://10.0.0.236/trunk@244486 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org
2008-01-30 05:14:55 +00:00
parent d22c2aba04
commit cb52c72fdf

View File

@@ -2379,10 +2379,10 @@ js_GC(JSContext *cx, JSGCInvocationKind gckind)
if (callback) {
JSBool ok;
if (gckind != GC_LAST_DITCH)
if (gckind == GC_LAST_DITCH)
JS_UNLOCK_GC(rt);
ok = callback(cx, JSGC_BEGIN);
if (gckind != GC_LAST_DITCH)
if (gckind == GC_LAST_DITCH)
JS_LOCK_GC(rt);
if (!ok && gckind != GC_LAST_CONTEXT)
return;