Bug 1404629 - Make Queue emptiness assertion DEBUG-only. r=froydnj, a=ritu
authorBill McCloskey <billm@mozilla.com>
Tue, 10 Oct 2017 15:46:05 -0700
changeset 434850 355a965b180c95d3e75f859c0d8605b661270dd5
parent 434849 4d00f19c020d85b88841c557a8ca8baea72735a7
child 434851 0c27448f0b21f75951b0f00e06d4e43426791cad
push id1567
push userjlorenzo@mozilla.com
push dateThu, 02 Nov 2017 12:36:05 +0000
treeherdermozilla-release@e512c14a0406 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj, ritu
bugs1404629
milestone57.0
Bug 1404629 - Make Queue emptiness assertion DEBUG-only. r=froydnj, a=ritu MozReview-Commit-ID: HIAJKbdiBCf
xpcom/threads/Queue.h
--- a/xpcom/threads/Queue.h
+++ b/xpcom/threads/Queue.h
@@ -20,17 +20,17 @@ namespace mozilla {
 template<class T, size_t RequestedItemsPerPage = 256>
 class Queue
 {
 public:
   Queue() {}
 
   ~Queue()
   {
-    MOZ_RELEASE_ASSERT(IsEmpty());
+    MOZ_ASSERT(IsEmpty());
 
     if (mHead) {
       free(mHead);
     }
   }
 
   T& Push(T&& aElement)
   {