Bug 1717778 - Upgrade some LinkedList asserts to RELEASE_ASSERT, r=glandium
authorNika Layzell <nika@thelayzells.com>
Fri, 25 Jun 2021 16:53:39 +0000
changeset 584436 6ba608aff7b71ed48fccfc31efa3d64c497e82f3
parent 584435 c2191ee9cb6519c9736108ee1c82599a533ef552
child 584437 13a8f52f46525ccc76e7f0861137ade422a8f8da
push id38565
push usermlaza@mozilla.com
push dateFri, 25 Jun 2021 21:51:52 +0000
treeherdermozilla-central@b9a82200b994 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1717778
milestone91.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 1717778 - Upgrade some LinkedList asserts to RELEASE_ASSERT, r=glandium Differential Revision: https://phabricator.services.mozilla.com/D118719
mfbt/LinkedList.h
--- a/mfbt/LinkedList.h
+++ b/mfbt/LinkedList.h
@@ -309,33 +309,33 @@ class LinkedListElement {
   }
 
   /*
    * Insert aElem after this element, but don't check that this element is in
    * the list.  This is called by LinkedList::insertFront().
    */
   void setNextUnsafe(RawType aElem) {
     LinkedListElement* listElem = static_cast<LinkedListElement*>(aElem);
-    MOZ_ASSERT(!listElem->isInList());
+    MOZ_RELEASE_ASSERT(!listElem->isInList());
 
     listElem->mNext = this->mNext;
     listElem->mPrev = this;
     this->mNext->mPrev = listElem;
     this->mNext = listElem;
 
     Traits::enterList(aElem);
   }
 
   /*
    * Insert aElem before this element, but don't check that this element is in
    * the list.  This is called by LinkedList::insertBack().
    */
   void setPreviousUnsafe(RawType aElem) {
     LinkedListElement<T>* listElem = static_cast<LinkedListElement<T>*>(aElem);
-    MOZ_ASSERT(!listElem->isInList());
+    MOZ_RELEASE_ASSERT(!listElem->isInList());
 
     listElem->mNext = this;
     listElem->mPrev = this->mPrev;
     this->mPrev->mNext = listElem;
     this->mPrev = listElem;
 
     Traits::enterList(aElem);
   }