Bug 1157304 - Make the empty classname assertion in BloatEntry fatal. r=froydnj
authorAndrew McCreight <continuation@gmail.com>
Mon, 27 Apr 2015 10:28:19 -0400
changeset 241213 46baca3165166d5717ac8dee86de5ffec0d91fff
parent 241212 41a196273ff9deeb3c64dd7294461f2d647f535f
child 241214 dbbb71fcbb4857eea45cff4645b6b5f5ff40a175
push id59048
push useramccreight@mozilla.com
push dateMon, 27 Apr 2015 14:28:33 +0000
treeherdermozilla-inbound@46baca316516 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1157304
milestone40.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 1157304 - Make the empty classname assertion in BloatEntry fatal. r=froydnj
xpcom/base/nsTraceRefcnt.cpp
--- a/xpcom/base/nsTraceRefcnt.cpp
+++ b/xpcom/base/nsTraceRefcnt.cpp
@@ -258,17 +258,17 @@ mozilla::StaticAutoPtr<WalkTheStackCodeA
 ////////////////////////////////////////////////////////////////////////////////
 
 class BloatEntry
 {
 public:
   BloatEntry(const char* aClassName, uint32_t aClassSize)
     : mClassSize(aClassSize)
   {
-    NS_ASSERTION(strlen(aClassName) > 0, "BloatEntry name must be non-empty");
+    MOZ_ASSERT(strlen(aClassName) > 0, "BloatEntry name must be non-empty");
     mClassName = PL_strdup(aClassName);
     mNewStats.Clear();
     mAllStats.Clear();
     mTotalLeaked = 0;
   }
 
   ~BloatEntry()
   {