mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 728990 - Change "The two measurements of 'explicit' memory usage don't match" assertion to a warning, because it fails occasionally due to races. r=jruderman.
--HG-- extra : rebase_source : 3b2a8c8f14690bea041366dd35ff5147895abd56
This commit is contained in:
parent
b638512b2b
commit
7eb283d80a
@ -821,9 +821,17 @@ nsMemoryReporterManager::GetExplicit(PRInt64 *aExplicit)
|
||||
}
|
||||
PRInt64 explicitNonHeapMultiSize2 = wrappedExplicitNonHeapMultiSize2->mValue;
|
||||
|
||||
// Check the two measurements give the same result.
|
||||
NS_ASSERTION(explicitNonHeapMultiSize == explicitNonHeapMultiSize2,
|
||||
"The two measurements of 'explicit' memory usage don't match");
|
||||
// Check the two measurements give the same result. This was an
|
||||
// NS_ASSERTION but they occasionally don't match due to races (bug
|
||||
// 728990).
|
||||
if (explicitNonHeapMultiSize != explicitNonHeapMultiSize2) {
|
||||
char *msg = PR_smprintf("The two measurements of 'explicit' memory "
|
||||
"usage don't match (%lld vs %lld)",
|
||||
explicitNonHeapMultiSize,
|
||||
explicitNonHeapMultiSize2);
|
||||
NS_WARNING(msg);
|
||||
PR_smprintf_free(msg);
|
||||
}
|
||||
#endif
|
||||
|
||||
*aExplicit = heapAllocated + explicitNonHeapNormalSize + explicitNonHeapMultiSize;
|
||||
|
Loading…
Reference in New Issue
Block a user