mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 934568 - Make cycle collector OOM assertions fatal in debug builds. r=mccr8
This commit is contained in:
parent
6ceb592a81
commit
0e5debd55a
@ -2132,7 +2132,7 @@ nsCycleCollector::MarkRoots(GCGraphBuilder &aBuilder)
|
||||
}
|
||||
|
||||
if (aBuilder.RanOutOfMemory()) {
|
||||
NS_ASSERTION(false,
|
||||
MOZ_ASSERT(false,
|
||||
"Ran out of memory while building cycle collector graph");
|
||||
CC_TELEMETRY(_OOM, true);
|
||||
}
|
||||
@ -2250,7 +2250,7 @@ nsCycleCollector::ScanWeakMaps()
|
||||
} while (anyChanged);
|
||||
|
||||
if (failed) {
|
||||
NS_ASSERTION(false, "Ran out of memory in ScanWeakMaps");
|
||||
MOZ_ASSERT(false, "Ran out of memory in ScanWeakMaps");
|
||||
CC_TELEMETRY(_OOM, true);
|
||||
}
|
||||
}
|
||||
@ -2267,7 +2267,7 @@ nsCycleCollector::ScanRoots(nsICycleCollectorListener *aListener)
|
||||
GraphWalker<scanVisitor>(scanVisitor(mWhiteNodeCount, failed)).WalkFromRoots(mGraph);
|
||||
|
||||
if (failed) {
|
||||
NS_ASSERTION(false, "Ran out of memory in ScanRoots");
|
||||
MOZ_ASSERT(false, "Ran out of memory in ScanRoots");
|
||||
CC_TELEMETRY(_OOM, true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user