mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1133759 - Always shrink GC buffers at the end of a shrinking GC, even if we don't compact r=terrence
This commit is contained in:
parent
e361b9872f
commit
8467f2f862
@ -5520,10 +5520,6 @@ GCRuntime::compactPhase(JS::gcreason::Reason reason)
|
||||
}
|
||||
#endif
|
||||
|
||||
// Ensure execess chunks are returns to the system and free arenas
|
||||
// decommitted.
|
||||
shrinkBuffers();
|
||||
|
||||
#ifdef DEBUG
|
||||
CheckHashTablesAfterMovingGC(rt);
|
||||
for (GCZonesIter zone(rt); !zone.done(); zone.next()) {
|
||||
@ -5569,6 +5565,10 @@ GCRuntime::finishCollection(JS::gcreason::Reason reason)
|
||||
MOZ_ASSERT(!zone->wasGCStarted());
|
||||
}
|
||||
|
||||
// Ensure execess chunks are returned to the system and free arenas
|
||||
// decommitted.
|
||||
shrinkBuffers();
|
||||
|
||||
lastGCTime = currentTime;
|
||||
|
||||
// If this is an OOM GC reason, wait on the background sweeping thread
|
||||
|
Loading…
Reference in New Issue
Block a user