Bug 1437058 - Add LOG for CacheEntryHandle::~CacheEntryHandle to track its lifetime correctly, r=michal
authorHonza Bambas <honzab.moz@firemni.cz>
Fri, 09 Feb 2018 07:19:00 +0200
changeset 403373 e221a4e7b13c98091df7efdfd2c359b248e3039a
parent 403372 aad65073f7569d72c33eb0930a7a162b2d12d0a0
child 403374 cfa04a602eba10042b034b621d8fcdd0618fa861
push id99787
push userccoroiu@mozilla.com
push dateMon, 12 Feb 2018 16:01:00 +0000
treeherdermozilla-inbound@e221a4e7b13c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmichal
bugs1437058
milestone60.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1437058 - Add LOG for CacheEntryHandle::~CacheEntryHandle to track its lifetime correctly, r=michal
netwerk/cache2/CacheEntry.cpp
--- a/netwerk/cache2/CacheEntry.cpp
+++ b/netwerk/cache2/CacheEntry.cpp
@@ -76,16 +76,18 @@ NS_IMETHODIMP CacheEntryHandle::Dismiss(
   LOG(("  already dropped"));
   return NS_ERROR_UNEXPECTED;
 }
 
 CacheEntryHandle::~CacheEntryHandle()
 {
   mEntry->ReleaseHandleRef();
   Dismiss();
+
+  LOG(("CacheEntryHandle::~CacheEntryHandle %p", this));
 }
 
 // CacheEntry::Callback
 
 CacheEntry::Callback::Callback(CacheEntry* aEntry,
                                nsICacheEntryOpenCallback *aCallback,
                                bool aReadOnly, bool aCheckOnAnyThread,
                                bool aSecret)