Bug 1059132 - Log a message and continue when we found our clock went backward while using a system clock. r=jesup
authorPaul Adenot <paul@paul.cx>
Wed, 27 Aug 2014 11:48:27 +0200
changeset 223865 7402fa69f77a84dcb29a830db8236a23e69e6a20
parent 223864 fa360dc632a31975ca78a3cd16c958f993d01e63
child 223866 546a04de2db6f9a5f29afbc4d72d617feb365936
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup
bugs1059132
milestone34.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 1059132 - Log a message and continue when we found our clock went backward while using a system clock. r=jesup
content/media/GraphDriver.cpp
--- a/content/media/GraphDriver.cpp
+++ b/content/media/GraphDriver.cpp
@@ -83,17 +83,19 @@ void GraphDriver::EnsureImmediateWakeUpL
 }
 
 void GraphDriver::UpdateStateComputedTime(GraphTime aStateComputedTime)
 {
   MOZ_ASSERT(aStateComputedTime > mIterationEnd);
   // The next state computed time can be the same as the previous, here: it
   // means the driver would be have been blocking indefinitly, but the graph has
   // been woken up right after having been to sleep.
-  MOZ_ASSERT(aStateComputedTime >= mStateComputedTime, "State time can't go backward.");
+  if (aStateComputedTime < mStateComputedTime) {
+    printf("State time can't go backward %ld < mStateComputedTime.\n", aStateComputedTime, mStateComputedTime);
+  }
 
   mStateComputedTime = aStateComputedTime;
 }
 
 void GraphDriver::EnsureNextIteration()
 {
   MonitorAutoLock lock(mGraphImpl->GetMonitor());
   EnsureNextIterationLocked();