Bug 1236266 - Use release assert in IPC serialization for regions (r=jmuizelaar) a=ritu
authorBill McCloskey <billm@mozilla.com>
Mon, 04 Jan 2016 16:00:27 -0800
changeset 310795 2d0585aa988044fae0df0885a018ef57705f40db
parent 310794 65635ce66b9eeb2f5c1d08e97d2318bb6d91fe3f
child 310796 55e14bd319505f8c43f1ac8d7480cfac32c10270
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmuizelaar, ritu
bugs1236266
milestone45.0a2
Bug 1236266 - Use release assert in IPC serialization for regions (r=jmuizelaar) a=ritu
gfx/ipc/GfxMessageUtils.h
--- a/gfx/ipc/GfxMessageUtils.h
+++ b/gfx/ipc/GfxMessageUtils.h
@@ -371,17 +371,17 @@ template<typename Region, typename Rect,
 struct RegionParamTraits
 {
   typedef Region paramType;
 
   static void Write(Message* msg, const paramType& param)
   {
     Iter it(param);
     while (const Rect* r = it.Next()) {
-      MOZ_ASSERT(!r->IsEmpty());
+      MOZ_RELEASE_ASSERT(!r->IsEmpty());
       WriteParam(msg, *r);
     }
     // empty rects are sentinel values because nsRegions will never
     // contain them
     WriteParam(msg, Rect());
   }
 
   static bool Read(const Message* msg, void** iter, paramType* result)