Bug 1341355 - Fix opt build bustage r=me
authorJon Coppeard <jcoppeard@mozilla.com>
Tue, 21 Feb 2017 18:12:29 +0000
changeset 344149 b8ecc482d087b47df5cc9a95549f2b5f642c3b85
parent 344148 80f3a16286b0d4ef6896853d02087c44c93e0857
child 344150 d540146b50b30e39ace04623bf8f7f3e21573b6b
push id31402
push usercbook@mozilla.com
push dateWed, 22 Feb 2017 13:33:50 +0000
treeherdermozilla-central@f5372cb6c3c7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1341355
milestone54.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 1341355 - Fix opt build bustage r=me
js/src/gc/Marking.cpp
--- a/js/src/gc/Marking.cpp
+++ b/js/src/gc/Marking.cpp
@@ -2224,23 +2224,27 @@ MarkStack::sizeOfExcludingThis(mozilla::
 {
     return mallocSizeOf(stack_);
 }
 
 MarkStackIter::MarkStackIter(const MarkStack& stack)
   : stack_(stack),
     pos_(stack.tos_)
 {
+#ifdef DEBUG
     stack.iteratorCount_++;
+#endif
 }
 
 MarkStackIter::~MarkStackIter()
 {
+#ifdef DEBUG
     MOZ_ASSERT(stack_.iteratorCount_);
     stack_.iteratorCount_--;
+#endif
 }
 
 inline size_t
 MarkStackIter::position() const
 {
     return pos_ - stack_.stack_;
 }