Bug 832609 - Disable blob memory reporter. r=jlebar, a=lsblakk
authorKyle Huey <khuey@kylehuey.com>
Wed, 22 May 2013 15:05:10 -0400
changeset 137691 48a67a6351578fc12ebf936b43fc456b2251b77a
parent 137690 6fc2baf36c55fc02a39f81b8119cc97475fe4e9c
child 137692 1d3508fa8497c11af141f06b84658977d0ede101
push id2502
push userjlebar@mozilla.com
push dateTue, 28 May 2013 14:12:31 +0000
treeherdermozilla-beta@48a67a635157 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlebar, lsblakk
bugs832609
milestone22.0
Bug 832609 - Disable blob memory reporter. r=jlebar, a=lsblakk
content/base/public/nsDOMFile.h
--- a/content/base/public/nsDOMFile.h
+++ b/content/base/public/nsDOMFile.h
@@ -389,30 +389,19 @@ protected:
 
   class DataOwner : public mozilla::LinkedListElement<DataOwner> {
   public:
     NS_INLINE_DECL_THREADSAFE_REFCOUNTING(DataOwner)
     DataOwner(void* aMemoryBuffer, uint64_t aLength)
       : mData(aMemoryBuffer)
       , mLength(aLength)
     {
-      if (!sDataOwners) {
-        sDataOwners = new mozilla::LinkedList<DataOwner>();
-        EnsureMemoryReporterRegistered();
-      }
-      sDataOwners->insertBack(this);
     }
 
     ~DataOwner() {
-      remove();
-      if (sDataOwners->isEmpty()) {
-        // Free the linked list if it's empty.
-        sDataOwners = nullptr;
-      }
-
       moz_free(mData);
     }
 
     static void EnsureMemoryReporterRegistered();
 
     static bool sMemoryReporterRegistered;
     static mozilla::StaticAutoPtr<mozilla::LinkedList<DataOwner> > sDataOwners;
     void* mData;