mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix build breakage in non-threadsafe JS shell. rs=brendan on IRC.
--HG-- extra : rebase_source : e4320a71553033d06f5e8ffa62a9798db9bef3e1
This commit is contained in:
parent
79a69bd910
commit
4dd095ebe7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user