Bug 969902 - Fix a problem with DNS memory reporting measurement. r=sworkman.
authorNicholas Nethercote <nnethercote@mozilla.com>
Mon, 10 Mar 2014 15:44:35 -0700
changeset 172886 33dfbb13ab63ddf5a9677b731fd0c1abff498185
parent 172885 91c5ede1cb080f788c03cb77a855199b9a5b8b7d
child 172887 681b3c6bcf49f03b780a7e3c2e2a5db063c09c7d
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerssworkman
bugs969902
milestone30.0a1
Bug 969902 - Fix a problem with DNS memory reporting measurement. r=sworkman.
netwerk/dns/nsHostResolver.cpp
--- a/netwerk/dns/nsHostResolver.cpp
+++ b/netwerk/dns/nsHostResolver.cpp
@@ -291,17 +291,17 @@ nsHostRecord::SizeOfIncludingThis(Malloc
     // |mallocSizeOf(this)| call above.
 
     n += SizeOfResolveHostCallbackListExcludingHead(&callbacks, mallocSizeOf);
     n += addr_info ? addr_info->SizeOfIncludingThis(mallocSizeOf) : 0;
     n += mallocSizeOf(addr);
 
     n += mBlacklistedItems.SizeOfExcludingThis(mallocSizeOf);
     for (size_t i = 0; i < mBlacklistedItems.Length(); i++) {
-        n += mBlacklistedItems[i].SizeOfIncludingThisMustBeUnshared(mallocSizeOf);
+        n += mBlacklistedItems[i].SizeOfExcludingThisMustBeUnshared(mallocSizeOf);
     }
     return n;
 }
 
 //----------------------------------------------------------------------------
 
 struct nsHostDBEnt : PLDHashEntryHdr
 {