Bug 1259850 warning fix on a CLOSED TREE
☠☠ backed out by 69518db96a4d ☠ ☠
authorSteve Fink <sfink@mozilla.com>
Tue, 31 May 2016 10:19:32 -0700
changeset 340787 ef5cdcca45d9c9835a72d76e6e8e3491c5d62289
parent 340786 156af424bc8e00c2b22f36116c080f9d84b38e75
child 340788 26187322aa0533fc983cacbd208a2922a897e2ec
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1259850
milestone49.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 1259850 warning fix on a CLOSED TREE MozReview-Commit-ID: 8OsRyn3HD3j
js/src/gc/Statistics.cpp
--- a/js/src/gc/Statistics.cpp
+++ b/js/src/gc/Statistics.cpp
@@ -1105,18 +1105,20 @@ Statistics::suspendPhases(Phase suspensi
         recordPhaseEnd(parent);
     }
     suspendedPhases[suspended++] = suspension;
 }
 
 void
 Statistics::resumePhases()
 {
+#ifdef DEBUG
     Phase popped = suspendedPhases[--suspended];
     MOZ_ASSERT(popped == PHASE_EXPLICIT_SUSPENSION || popped == PHASE_IMPLICIT_SUSPENSION);
+#endif
     while (suspended &&
            suspendedPhases[suspended - 1] != PHASE_EXPLICIT_SUSPENSION &&
            suspendedPhases[suspended - 1] != PHASE_IMPLICIT_SUSPENSION)
     {
         Phase resumePhase = suspendedPhases[--suspended];
         if (resumePhase == PHASE_MUTATOR)
             timedGCTime += PRMJ_Now() - timedGCStart;
         beginPhase(resumePhase);