Fix stupidity from patch for 414452 (417144, r=shaver, thanks to vlad for finding).

git-svn-id: svn://10.0.0.236/trunk@245545 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org
2008-02-13 04:17:50 +00:00
parent 306ca57971
commit ed3ecf7fce

View File

@@ -2600,9 +2600,15 @@ js_GC(JSContext *cx, JSGCInvocationKind gckind)
*/
if (rt->gcLevel == 1 && !rt->gcPoke)
goto done_running;
rt->gcLevel = 1;
rt->gcLevel = 0;
rt->gcPoke = JS_FALSE;
rt->gcRunning = JS_FALSE;
#ifdef JS_THREADSAFE
rt->gcThread = NULL;
rt->requestCount += requestDebit;
#endif
gckind = GC_LOCK_HELD;
goto restart_at_beginning;
}