Bug 832609 - Disable blob memory reporter. r=jlebar, a=lsblakk
authorKyle Huey <khuey@kylehuey.com>
Wed, 22 May 2013 15:05:10 -0400
changeset 138528 729fb1f47da8582b0bf94c55fe33ee1a06866453
parent 138527 59f9f7a8bd8e92d7aabdbc79856d336a4e632a79
child 138529 7c7e6e87fe7675aa4c4c4ec78cbaef9eb6511aa1
push id3779
push userryanvm@gmail.com
push dateWed, 22 May 2013 19:08:57 +0000
treeherdermozilla-aurora@7c7e6e87fe76 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjlebar, lsblakk
bugs832609
milestone23.0a2
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;