Bug 1280443 - Make a timer assert more aggressive. r=drno, a=sylvestre
authorByron Campen [:bwc] <docfaraday@gmail.com>
Mon, 20 Jun 2016 11:47:10 -0500
changeset 339711 fd8d4ad885aa3adcc5d620d2a03aab15577664fc
parent 339710 cdb052e0c1e465c68440f04ab02ffc7175acfc1a
child 339712 b6b52e21758a5ac9855ee5c2938df5cfc1415cb2
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdrno, sylvestre
bugs1280443
milestone49.0a2
Bug 1280443 - Make a timer assert more aggressive. r=drno, a=sylvestre
media/mtransport/nr_timer.cpp
--- a/media/mtransport/nr_timer.cpp
+++ b/media/mtransport/nr_timer.cpp
@@ -114,17 +114,17 @@ class nrappkitTimerCallback : public nra
   virtual ~nrappkitTimerCallback() {}
 };
 
 NS_IMPL_ISUPPORTS(nrappkitTimerCallback, nsITimerCallback)
 
 NS_IMETHODIMP nrappkitTimerCallback::Notify(nsITimer *timer) {
   r_log(LOG_GENERIC, LOG_DEBUG, "Timer callback fired (set in %s:%d)",
         function_.c_str(), line_);
-  MOZ_ASSERT(timer == timer_);
+  MOZ_RELEASE_ASSERT(timer == timer_);
   cb_(0, 0, cb_arg_);
 
   // Allow the timer to go away.
   timer_ = nullptr;
   return NS_OK;
 }
 
 class nrappkitScheduledCallback : public nrappkitCallback {