Bug 1167189 - Use a size annotation on the OOM abort. r=bholley, a=lizzard
authorDavid Major <dmajor@mozilla.com>
Tue, 26 May 2015 17:04:24 -0400
changeset 266201 561e0bdf9614
parent 266200 d744ad902c75
child 266202 ec9c793f24ad
push id4785
push userryanvm@gmail.com
push date2015-06-08 13:34 +0000
treeherdermozilla-beta@a2c9c4c49319 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley, lizzard
bugs1167189
milestone39.0
Bug 1167189 - Use a size annotation on the OOM abort. r=bholley, a=lizzard
dom/base/nsFrameMessageManager.cpp
--- a/dom/base/nsFrameMessageManager.cpp
+++ b/dom/base/nsFrameMessageManager.cpp
@@ -2079,17 +2079,17 @@ nsSameProcessAsyncMessageBase::nsSamePro
                                                              JS::Handle<JSObject*> aCpows,
                                                              nsIPrincipal* aPrincipal)
   : mRuntime(js::GetRuntime(aCx)),
     mMessage(aMessage),
     mCpows(aCx, aCpows),
     mPrincipal(aPrincipal)
 {
   if (aData.mDataLength && !mData.copy(aData.mData, aData.mDataLength)) {
-    NS_RUNTIMEABORT("OOM");
+    NS_ABORT_OOM(aData.mDataLength);
   }
   mClosure = aData.mClosure;
 }
 
 void
 nsSameProcessAsyncMessageBase::ReceiveMessage(nsISupports* aTarget,
                                               nsFrameMessageManager* aManager)
 {