Bug 1205016 - Double nsUDPSocketCloseThread stack size to avoid stack overflow. r=mcmanus, a=sledru
authorDragana Damjanovic <dd.mozilla@gmail.com>
Thu, 17 Sep 2015 08:32:00 +0200
changeset 295058 8a02ad48b05f6f9af00b73d21305380860f40b7c
parent 295057 c4ed84ecb00475c6264bd7c94314be0afb32a6cc
child 295059 2d896fd0ad024370e55e1a48075be5fedbc9340a
push id5628
push usermozilla@noorenberghe.ca
push dateMon, 21 Sep 2015 23:09:25 +0000
reviewersmcmanus, sledru
bugs1205016
milestone42.0a2
Bug 1205016 - Double nsUDPSocketCloseThread stack size to avoid stack overflow. r=mcmanus, a=sledru
netwerk/base/nsUDPSocket.cpp
--- a/netwerk/base/nsUDPSocket.cpp
+++ b/netwerk/base/nsUDPSocket.cpp
@@ -182,17 +182,17 @@ nsUDPSocketCloseThread::Begin()
     NS_DispatchToMainThread(event);
   }
 
   // Keep us self-referenced during lifetime of the thread.
   // Released after the thread is done.
   mSelf = this;
   mThread = PR_CreateThread(PR_USER_THREAD, ThreadFunc, this,
                             PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD,
-                            PR_JOINABLE_THREAD, 4 * 4096);
+                            PR_JOINABLE_THREAD, 32 * 1024);
   if (!mThread) {
     // This doesn't join since there is no thread, just removes
     // this class as an observer.
     JoinAndRemove();
     mSelf = nullptr;
     return false;
   }