mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
Bug 1064578 - Part 3: move the table sweeping sections into a separate block; r=jonco
--HG-- extra : rebase_source : d01822fc937cc2fe7230eae338aa15cda1ae2f73
This commit is contained in:
parent
d1a9a441e2
commit
1e308472a9
@ -4651,12 +4651,6 @@ GCRuntime::beginSweepingZoneGroup()
|
||||
}
|
||||
}
|
||||
|
||||
/* Collect watch points associated with unreachable objects. */
|
||||
WatchpointMap::sweepAll(rt);
|
||||
|
||||
/* Detach unreachable debuggers and global objects from each other. */
|
||||
Debugger::sweepAll(&fop);
|
||||
|
||||
{
|
||||
gcstats::AutoPhase ap(stats, gcstats::PHASE_SWEEP_COMPARTMENTS);
|
||||
gcstats::AutoPhase apdc(stats, gcstats::PHASE_SWEEP_DISCARD_CODE);
|
||||
@ -4677,18 +4671,33 @@ GCRuntime::beginSweepingZoneGroup()
|
||||
c->sweepBaseShapeTable();
|
||||
c->sweepInitialShapeTable();
|
||||
c->sweepTypeObjectTables();
|
||||
c->sweepRegExps();
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
gcstats::AutoPhase ap(stats, gcstats::PHASE_SWEEP_COMPARTMENTS);
|
||||
gcstats::AutoSCC scc(stats, zoneGroupIndex);
|
||||
gcstats::AutoPhase apst(stats, gcstats::PHASE_SWEEP_TABLES);
|
||||
|
||||
for (GCCompartmentGroupIter c(rt); !c.done(); c.next()) {
|
||||
c->sweepCallsiteClones();
|
||||
c->sweepSavedStacks();
|
||||
c->sweepGlobalObject(&fop);
|
||||
c->sweepSelfHostingScriptSource();
|
||||
c->sweepJitCompartment(&fop);
|
||||
c->sweepRegExps();
|
||||
c->sweepDebugScopes();
|
||||
c->sweepWeakMaps();
|
||||
c->sweepNativeIterators();
|
||||
}
|
||||
}
|
||||
|
||||
/* Collect watch points associated with unreachable objects. */
|
||||
WatchpointMap::sweepAll(rt);
|
||||
|
||||
/* Detach unreachable debuggers and global objects from each other. */
|
||||
Debugger::sweepAll(&fop);
|
||||
|
||||
{
|
||||
gcstats::AutoPhase ap(stats, gcstats::PHASE_SWEEP_COMPARTMENTS);
|
||||
gcstats::AutoSCC scc(stats, zoneGroupIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user