Bug 1395330 - Release IPC lifetime assertions (r=mccr8)
authorBill McCloskey <billm@mozilla.com>
Wed, 30 Aug 2017 11:13:16 -0700
changeset 428889 7a590264fbdf75aa003d853adae3c67f4bde6ef2
parent 428888 8bd80bb1de12d3429a155fbb066f7b03606fdd0c
child 428890 366cb8c89311c297ea837387bb621a1c30da8e3d
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmccr8
bugs1395330
milestone57.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 1395330 - Release IPC lifetime assertions (r=mccr8) MozReview-Commit-ID: 3CGjEofjojc
ipc/glue/MessageChannel.cpp
--- a/ipc/glue/MessageChannel.cpp
+++ b/ipc/glue/MessageChannel.cpp
@@ -667,17 +667,17 @@ MessageChannel::CanSend() const
     }
     MonitorAutoLock lock(*mMonitor);
     return Connected();
 }
 
 void
 MessageChannel::WillDestroyCurrentMessageLoop()
 {
-#if defined(DEBUG) && !defined(ANDROID)
+#if !defined(ANDROID)
 #if defined(MOZ_CRASHREPORTER)
     CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("ProtocolName"),
                                        nsDependentCString(mName));
 #endif
     MOZ_CRASH("MessageLoop destroyed before MessageChannel that's bound to it");
 #endif
 }