Backed out changeset 4d1ffad0a2fd (bug 1133759) for octane-splay regression

This commit is contained in:
Jon Coppeard 2015-02-24 16:33:06 +00:00
parent 4598b58dae
commit b856730e30

View File

@ -5520,6 +5520,10 @@ 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()) {
@ -5565,10 +5569,6 @@ 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