mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 958726 - Perform shrinking GC if nsJSContext::GarbageCollectNow is called with aShrinking == ShrinkingGC. r=billm
--HG-- extra : rebase_source : b590c474fc195e2118de19f4ce9747bb4407d0f0
This commit is contained in:
parent
64d5d5a8ed
commit
f6dcb4fe1a
@ -1926,7 +1926,10 @@ nsJSContext::GarbageCollectNow(JS::gcreason::Reason aReason,
|
||||
|
||||
JS::PrepareForFullGC(sRuntime);
|
||||
if (aIncremental == IncrementalGC) {
|
||||
MOZ_ASSERT(aShrinking == NonShrinkingGC);
|
||||
JS::IncrementalGC(sRuntime, aReason, aSliceMillis);
|
||||
} else if (aShrinking == ShrinkingGC) {
|
||||
JS::ShrinkingGC(sRuntime, aReason);
|
||||
} else {
|
||||
JS::GCForReason(sRuntime, aReason);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user