summaryrefslogtreecommitdiffstats
path: root/dom/workers/WorkerPrivate.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-01-29 14:55:20 +0000
committerMoonchild <moonchild@palemoon.org>2021-01-29 14:55:20 +0000
commit745254183c226e5db0caa566ad496d2f0192182e (patch)
tree467b282ce4e90dba6837dd9d631b6c9082463274 /dom/workers/WorkerPrivate.cpp
parentc76214f0b54cf74b69d0fb4afa0d2eca2e898a98 (diff)
parente1daeef18312a0cb17eda6bed7f363d8748ed4a3 (diff)
downloadUXP-745254183c226e5db0caa566ad496d2f0192182e.tar
UXP-745254183c226e5db0caa566ad496d2f0192182e.tar.gz
UXP-745254183c226e5db0caa566ad496d2f0192182e.tar.lz
UXP-745254183c226e5db0caa566ad496d2f0192182e.tar.xz
UXP-745254183c226e5db0caa566ad496d2f0192182e.zip
Merge branch 'master' into release
Diffstat (limited to 'dom/workers/WorkerPrivate.cpp')
-rw-r--r--dom/workers/WorkerPrivate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/workers/WorkerPrivate.cpp b/dom/workers/WorkerPrivate.cpp
index 860bf8468..1f8b3b70c 100644
--- a/dom/workers/WorkerPrivate.cpp
+++ b/dom/workers/WorkerPrivate.cpp
@@ -6392,7 +6392,7 @@ WorkerPrivate::GarbageCollectInternal(JSContext* aCx, bool aShrinking,
if (aShrinking || aCollectChildren) {
JS::PrepareForFullGC(aCx);
- if (aShrinking) {
+ if (aShrinking && mSyncLoopStack.IsEmpty()) {
JS::GCForReason(aCx, GC_SHRINK, JS::gcreason::DOM_WORKER);
if (!aCollectChildren) {