Bug 1250776 - increase JavaScript runtime heap size to 4 MB; r?bagder draft
authorLiang-Heng Chen <xeonchen@mozilla.com>
Fri, 29 Apr 2016 11:53:10 +0800
changeset 357797 e39a80a3b7576c5727b579c11c95998fecdea3ad
parent 357432 6adc822f5e27a55551faeb6c47a9bd8b0859a23b
child 519709 984db64f1395d873ce1520fd46d1a3db0792838a
push id16849
push userbmo:xeonchen@mozilla.com
push dateFri, 29 Apr 2016 12:26:23 +0000
reviewersbagder
bugs1250776
milestone49.0a1
Bug 1250776 - increase JavaScript runtime heap size to 4 MB; r?bagder MozReview-Commit-ID: 9rx2wRSgNHw
netwerk/base/ProxyAutoConfig.cpp
--- a/netwerk/base/ProxyAutoConfig.cpp
+++ b/netwerk/base/ProxyAutoConfig.cpp
@@ -611,17 +611,17 @@ class JSRuntimeWrapper
   }
 
   bool IsOK()
   {
     return mOK;
   }
 
 private:
-  static const unsigned sRuntimeHeapSize = 2 << 20;
+  static const unsigned sRuntimeHeapSize = 4 << 20; // 4 MB
 
   JSRuntime *mRuntime;
   JSContext *mContext;
   JS::PersistentRooted<JSObject*> mGlobal;
   bool      mOK;
 
   static const JSClass sGlobalClass;