Bug 969902 - Fix a problem with DNS memory reporting measurement. r=sworkman, a=sledru
authorNicholas Nethercote <nnethercote@mozilla.com>
Mon, 10 Mar 2014 15:44:35 -0700
changeset 183303 ffbf8e6aa0f229150384de2d6f23f4819284da12
parent 183302 b77120159790997187ff0072666ffdc2cb94b90e
child 183304 db6787d76538644bd663339f2dba5016b3de7bbe
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssworkman, sledru
bugs969902
milestone29.0a2
Bug 969902 - Fix a problem with DNS memory reporting measurement. r=sworkman, a=sledru
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
 {