Bug 823609: Disable blob memory reporter. r=jlebar a=akeybl
authorKyle Huey <khuey@kylehuey.com>
Mon, 28 Jan 2013 10:44:45 -0800
changeset 123804 f4f89f5b0d0fa4240bb7e6d252260190d9949bd7
parent 123803 a83f24162110fb15c816416353685c42ecb8d044
child 123805 45b35a3a46c7906992a00cb9c6e0b7fe426247ea
push id3261
push userkhuey@mozilla.com
push dateMon, 28 Jan 2013 18:45:26 +0000
treeherdermozilla-aurora@f4f89f5b0d0f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlebar, akeybl
bugs823609
milestone20.0a2
Bug 823609: Disable blob memory reporter. r=jlebar a=akeybl
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;