mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 767230 - Don't trigger a GC in MaybeGC when we are still sweeping in the background. r=billm
This commit is contained in:
parent
278c0c3b87
commit
0473bacc10
@ -2493,7 +2493,8 @@ MaybeGC(JSContext *cx)
|
||||
JSCompartment *comp = cx->compartment;
|
||||
if (comp->gcBytes > 8192 &&
|
||||
comp->gcBytes >= 3 * (comp->gcTriggerBytes / 4) &&
|
||||
rt->gcIncrementalState == NO_INCREMENTAL)
|
||||
rt->gcIncrementalState == NO_INCREMENTAL &&
|
||||
!rt->gcHelperThread.sweeping())
|
||||
{
|
||||
PrepareCompartmentForGC(comp);
|
||||
GCSlice(rt, GC_NORMAL, gcreason::MAYBEGC);
|
||||
|
Loading…
Reference in New Issue
Block a user