mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
[DOM] Try to avoid slow shrinking GC during sync calls
This commit is contained in:
parent
1835a24351
commit
8630e4f6dc
2 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue