Fix build breakage in non-threadsafe JS shell. rs=brendan on IRC.

--HG--
extra : rebase_source : e4320a71553033d06f5e8ffa62a9798db9bef3e1
This commit is contained in:
Jason Orendorff 2010-04-27 14:40:28 -05:00
parent 79a69bd910
commit 4dd095ebe7

View File

@ -937,8 +937,10 @@ js_InitGC(JSRuntime *rt, uint32 maxbytes)
return false;
}
#ifdef JS_THREADSAFE
if (!rt->gcHelperThread.init())
return false;
#endif
/*
* Separate gcMaxMallocBytes from gcMaxBytes but initialize to maxbytes
@ -1154,7 +1156,9 @@ js_FinishGC(JSRuntime *rt)
js_DumpGCStats(rt, stdout);
#endif
#ifdef JS_THREADSAFE
rt->gcHelperThread.cancel();
#endif
FinishGCArenaLists(rt);
if (rt->gcRootsHash.ops) {