mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Fix DEBUG_CC bustage treating all XPConnect roots as expected garbage. b=410116 r+sr=peterv Not part of default build (DEBUG_CC-only).
This commit is contained in:
parent
c2bd6ac6c5
commit
79ec4ed625
@ -2385,7 +2385,6 @@ nsCycleCollector::ExplainLiveExpectedGarbage()
|
||||
{
|
||||
// Instead of filling mBuf from the purple buffer, we fill it
|
||||
// from the list of nodes we were expected to collect.
|
||||
PRUint32 suspectCurrentCount = mBuf.GetSize();
|
||||
mExpectedGarbage.EnumerateEntries(&AddExpectedGarbage, this);
|
||||
|
||||
GCGraphBuilder builder(mGraph, mRuntimes);
|
||||
@ -2395,6 +2394,11 @@ nsCycleCollector::ExplainLiveExpectedGarbage()
|
||||
mRuntimes[i]->BeginCycleCollection(builder);
|
||||
}
|
||||
|
||||
// This might fail to explain expected garbage that's also in
|
||||
// the set of roots added by the runtimes (what used to be
|
||||
// called suspectCurrent), but that seems pretty unlikely.
|
||||
PRUint32 suspectCurrentCount = builder.Count();
|
||||
|
||||
MarkRoots(builder);
|
||||
ScanRoots();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user